Re: Macros for typtype (was Re: Arrays of Complex Types)
В списке pgsql-hackers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Macros for typtype (was Re: Arrays of Complex Types) |
| Дата | |
| Msg-id | 200704012218.58449.peter_e@gmx.net обсуждение |
| Ответ на | Re: Macros for typtype (was Re: Arrays of Complex Types) (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Macros for typtype (was Re: Arrays of Complex Types)
|
| Список | pgsql-hackers |
Tom Lane wrote: > It seems clear to me that this authorizes, but *does not require*, > the compiler to store an enum field in a byte or short instead of > an int when all the declared values will fit. So if we tried to > do this, we'd have the problem of needing compiler-specific data > type information entered in pg_type. FWIW, I never meant to suggest using enums tuple structures. I did, however, stumble over a case that appears to be handled similar to what I had in mind: see enum CoercionCodes in primnodes.h. Again, it's not really important, but it's interesting to see that there is precedent. -- Peter Eisentraut http://developer.postgresql.org/~petere/
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера