Re: Macros for typtype (was Re: Arrays of Complex Types)

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Macros for typtype (was Re: Arrays of Complex Types)
Дата
Msg-id 200704010228.56249.peter_e@gmx.net
обсуждение исходный текст
Ответ на Re: Macros for typtype (was Re: Arrays of Complex Types)  (Bruce Momjian <bruce@momjian.us>)
Ответы Re: Macros for typtype (was Re: Arrays of Complex Types)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Bruce Momjian wrote:
> > I just realized that I need to check every usage of typtype to be
> > sure that the enums patch is sane.  So, barring objection, I intend
> > to take this opportunity to make the code stop referring directly
> > to 'b', 'c' etc whereever possible.  Any objections to these names?
> >
> > #define    TYPTYPE_BASE        'b'
> > #define    TYPTYPE_COMPOSITE    'c'
> > #define    TYPTYPE_DOMAIN        'd'
> > #define    TYPTYPE_ENUM        'e'
> > #define    TYPTYPE_PSEUDO        'p'
>
> I like macros.  ;-)

Why not enums? ;-)

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/


В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Macros for typtype (was Re: Arrays of Complex Types)
Следующее
От: Mark Dilger
Дата:
Сообщение: Re: Bug in UTF8-Validation Code?