Re: Alignment padding bytes in arrays vs the planner

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: Alignment padding bytes in arrays vs the planner
Дата
Msg-id BANLkTi=a7N3T3EBac9O=g5hmQMELU_Ppyw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Alignment padding bytes in arrays vs the planner  (Noah Misch <noah@leadboat.com>)
Ответы Re: Alignment padding bytes in arrays vs the planner
Список pgsql-hackers
On Tue, May 24, 2011 at 2:11 PM, Noah Misch <noah@leadboat.com> wrote:
>> OK, I can't see what's broken.  Help?
>
> QTN2QT() allocates memory for a TSQuery using palloc().  TSQuery contains an
> array of QueryItem, which contains three bytes of padding between its first and
> second members.  Those bytes don't get initialized, so we have unpredictable
> content in the resulting datum.

OK, so I guess this needs to be applied and back-patched to 8.3, then.8.2 doesn't have this code.

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


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: "errno" not set in case of "libm" functions (HPUX)
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: Domains versus polymorphic functions, redux