Re: Two aesthetic bugs in the 1-byte packed varlena code

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Two aesthetic bugs in the 1-byte packed varlena code
Дата
Msg-id 8472.1181665010@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Two aesthetic bugs in the 1-byte packed varlena code  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-patches
Gregory Stark <stark@enterprisedb.com> writes:
> Well, it seems like it would be nice to mark which ones are and aren't unsafe
> rather than have them all be there waiting to trip people up.

We already do mark 'em --- that's what all the VARIABLE LENGTH FIELDS
START HERE comments are about.  I'm not especially worried about
mechanizing it since in practice code that tries to access those fields
will crash pretty obviously and consistently, except for the first such
field which is safe anyway.

            regards, tom lane

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

Предыдущее
От: "Satoshi Nagayasu"
Дата:
Сообщение: Re: trace_checkpoint parameter patch
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Two aesthetic bugs in the 1-byte packed varlena code