Re: schemapg.h

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: schemapg.h
Date: 2009-08-13 03:19:38
Message-ID: 20090813031938.GS5721@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane escribió:
> Alvaro Herrera <alvherre(at)commandprompt(dot)com> writes:
> > I think having schemapg.h be autogenerated is a good idea, so I stripped
> > that from Robert Haas' patch. Here's the result. This should be
> > relatively uncontroversial since, well, the controversial stuff has been
> > stripped. The one problem is that it introduces more complex code than
> > it removes dull declarations.
>
> Indeed, and it fails to get rid of all the dull declarations :-(.

Right. I don't think we're going to move forward if we only accept
giant steps at a time, and we simultaneously reject patches that are too
intrusive. What this says is that we're going to need to accept that a
first change to the file generation system is going to be a dwarf step
forward; otherwise we're going to stay right where we arej with which
I'm not terribly happy.

> I thought the idea was to generate all this stuff directly from the C
> struct declarations (plus some hardwired knowledge about the
> datatypes, comparable to what is in TypInfo in bootstrap.c already).
> Removing four out of six Schema_pg_xxx macros while leaving the
> equivalent DATA declarations behind isn't my idea of a major step
> forward.

Hmm, perhaps that's workable. I'll have a look around.

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Smith 2009-08-13 07:00:36 Re: machine-readable explain output v4
Previous Message Michael Paquier 2009-08-13 02:50:54 Re: [PATCH] pgbench: new feature allowing to launch shell commands