Re: hiding variable-length fields from Form_pg_* structs

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: hiding variable-length fields from Form_pg_* structs
Дата
Msg-id CA+Tgmoa9x85POBboRmfQcMCam9VsYOxDBxGgMECpVVpivovY5g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: hiding variable-length fields from Form_pg_* structs  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: hiding variable-length fields from Form_pg_* structs  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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.  It might be better to remove all varlena fields from C
> visibility and require use of the accessor functions.  We should at
> least look into what that would cost us.

My impression is that all the varlena fields also allow nulls.  So I
think there's no point in trying to keep the first one C-accessible.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: hiding variable-length fields from Form_pg_* structs
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: pg_upgrade automatic testing