Re: hiding variable-length fields from Form_pg_* structs
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: hiding variable-length fields from Form_pg_* structs |
| Дата | |
| Msg-id | 3157.1323115944@sss.pgh.pa.us обсуждение |
| Ответ на | Re: hiding variable-length fields from Form_pg_* structs (Robert Haas <robertmhaas@gmail.com>) |
| Ответы |
Re: hiding variable-length fields from Form_pg_* structs
|
| Список | pgsql-hackers |
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Dec 5, 2011 at 2:47 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Peter Eisentraut <peter_e@gmx.net> writes:
>>> To clarify, I believe the rule is that the first variable-length field
>>> can be accessed as a struct field. Are there any exceptions to this?
>> If it is known not null, yes, but I wonder just how many places actually
>> depend on that.
> My impression is that all the varlena fields also allow nulls.
See MARKNOTNULL in bootstrap.c. I think the exceptions were designed to
protect direct accesses to pg_index.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера