Re: bloated heapam.h - Mailing list pgsql-hackers

From Tom Lane
Subject Re: bloated heapam.h
Date
Msg-id 11926.1210481399@sss.pgh.pa.us
Whole thread Raw
In response to Re: bloated heapam.h  (Alvaro Herrera <alvherre@commandprompt.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> writes:
> Apparently the reason for pg_dump.c to need htup.h is getAttrName which
> needs system columns' attribute numbers.  Of course, the first thing
> that comes to mind is that we should fix pg_dump to not require that
> header in the first place.  Perhaps we can get the names by querying the
> server, at the same time we get the user column names.  (Apparently this
> is only used to dump unique indexes on system columns.)

> The easiest actual solution, however, seems to be to move those
> attribute numbers to a separate header, say access/sysattrs.h.

Yeah, probably.  There is certainly no reason for a frontend program
to be dealing in Datum; but it isn't unreasonable for it to know
the system column numbers, since it can see those in the catalogs.

I'm sure we have work in front of us to get these things separated
out a bit better.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: bloated heapam.h
Next
From: Euler Taveira de Oliveira
Date:
Subject: another ecpg crash