Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly - Mailing list pgsql-bugs

From Michael Paquier
Subject Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly
Date
Msg-id 20190806062111.GG32256@paquier.xyz
Whole thread Raw
In response to Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly  (Alexander Lakhin <exclusion@gmail.com>)
Responses Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly  (Michael Paquier <michael@paquier.xyz>)
Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly  (Alexander Lakhin <exclusion@gmail.com>)
List pgsql-bugs
On Mon, Aug 05, 2019 at 08:55:55AM +0300, Alexander Lakhin wrote:
> In case this bug is worth fixing, please look at the improved patch with
> the corresponding regression test.

In this case, DecodeSpecial() decodes the abbrevation passed down as
UNITS, which is right on its own.  Still, afterwards the code fails to
correctly set a date from the string present.  In short, your
suggestion of fix looks good to me and that's more consistent with the
full timezone spec case.  The test case you added in this patch
triggers the error in the code path where the timezone is not
specified.  Could you add an extra test case for the timezone
abbreviation?

Note that the next set of minor versions is very close by (we are in a
cease-fire period for commits on back-branches), so this won't be
fixed in the upcoming releases.
--
Michael

Attachment

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #15939: Postgres database size is growing due to oraphan objects
Next
From: Michael Paquier
Date:
Subject: Re: BUG #15910: Valgrind-detected error in DecodeTimeOnly