From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: hiding variable-length fields from Form_pg_* structs |
Date: | 2011-11-27 23:20:18 |
Message-ID: | 20389.1322436018@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> CATALOG(pg_attribute,1249) BKI_BOOTSTRAP ...
> {
> ...
> int4 attinhcount;
> Oid attcollation;
> aclitem attacl[1];
> CATVARLEN(
> text attoptions[1];
> text attfdwoptions[1];
> )
> } FormData_pg_attribute;
> where CATVARLEN is defined empty in C, and ignored in the BKI generation
> code.
> The real trick is to find something that handles well with pgindent and
> indenting text editors.
The low-tech way would be
CATALOG(pg_attribute,1249) BKI_BOOTSTRAP ...
{
...
int4 attinhcount;
Oid attcollation;
aclitem attacl[1];
#ifdef CATALOG_VARLEN_FIELDS
text attoptions[1];
text attfdwoptions[1];
#endif
} FormData_pg_attribute;
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2011-11-28 00:00:02 | Re: GiST for range types (was Re: Range Types - typo + NULL string constructor) |
Previous Message | Stephen Frost | 2011-11-27 23:19:46 | Re: logging in high performance systems. |