Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs - Mailing list pgsql-bugs

From Jeff Davis
Subject Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs
Date
Msg-id 1322724101.24279.26.camel@jdavis
Whole thread Raw
In response to Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, 2011-11-30 at 20:10 -0500, Tom Lane wrote:
> I believe what is happening in the second case is that the query is
> getting re-parse-analyzed, from scratch, and since now datestyle is
> different (DMY not MDY), the date literal gets interpreted differently.
> You could argue it either way as to which result is "more correct",
> but I doubt we're going to try to do something about that.  Best advice
> is to avoid ambiguous input, or if you can't, at least avoid flipping
> your datestyle on the fly.

I'm fine calling that "not a bug", though it appears to work in 8.3.

Regards,
    Jeff Davis

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: 9.1.1 hot standby startup gets sigbus
Next
From: Josh Kupershmidt
Date:
Subject: Re: 9.1.1 hot standby startup gets sigbus