Re: hiding variable-length fields from Form_pg_* structs
От | Tom Lane |
---|---|
Тема | Re: hiding variable-length fields from Form_pg_* structs |
Дата | |
Msg-id | 20389.1322436018@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | hiding variable-length fields from Form_pg_* structs (Peter Eisentraut <peter_e@gmx.net>) |
Ответы |
Re: hiding variable-length fields from Form_pg_* structs
|
Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.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
В списке pgsql-hackers по дате отправления: