Re: Alignment padding bytes in arrays vs the planner - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Alignment padding bytes in arrays vs the planner
Date
Msg-id 12444.1306261108@sss.pgh.pa.us
Whole thread Raw
In response to Re: Alignment padding bytes in arrays vs the planner  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Alignment padding bytes in arrays vs the planner  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Tue, May 24, 2011 at 2:11 PM, Noah Misch <noah@leadboat.com> wrote:
>> 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.

Yeah.  I'm in process of doing that, actually.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Domains versus polymorphic functions, redux
Next
From: Robert Haas
Date:
Subject: Re: Alignment padding bytes in arrays vs the planner