Re: Macros for typtype (was Re: Arrays of Complex Types)
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Macros for typtype (was Re: Arrays of Complex Types) |
| Дата | |
| Msg-id | 13829.1175394686@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Macros for typtype (was Re: Arrays of Complex Types) (Peter Eisentraut <peter_e@gmx.net>) |
| Ответы |
Re: Macros for typtype (was Re: Arrays of Complex Types)
|
| Список | pgsql-hackers |
Peter Eisentraut <peter_e@gmx.net> writes:
>>> 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?
> Why not enums? ;-)
Well, macros is how we do it elsewhere for "char" system columns.
I'm not sure we could rely on the behavior if we declared
pg_type.typtype as an enum type ... and if we don't, there's not
much point.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера