Re: hiding variable-length fields from Form_pg_* structs - Mailing list pgsql-hackers

From Tom Lane
Subject Re: hiding variable-length fields from Form_pg_* structs
Date
Msg-id 993.1326135899@sss.pgh.pa.us
Whole thread Raw
In response to Re: hiding variable-length fields from Form_pg_* structs  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: hiding variable-length fields from Form_pg_* structs
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> So I think the relcache.c thing should be fixed and then this might be
> good to go.

Cosmetic gripes: I think we could get rid of the various comments that
say things like "variable length fields start here", since the #ifdef
CATALOG_VARLEN lines now represent that in a standardized fashion.
Possibly those lines should be

#ifdef CATALOG_VARLEN        /* variable-length fields start here */

to be even clearer.

What would be appropriate to add instead of those inconsistently-used
comments is explicit comments about the exception cases such as
proargtypes, to make it clear that the placement of the #ifdef
CATALOG_VARLEN is intentional and not a bug in those cases.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: hiding variable-length fields from Form_pg_* structs
Next
From: Josh Berkus
Date:
Subject: Re: Why is CF 2011-11 still listed as "In Progress"?