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  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: logging in high performance systems.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)