pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Davis <pgsql@j-davis.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs
Date: Wed, 30 Nov 2011 23:21:41 -0800
Message-ID: <1322724101.24279.26.camel@jdavis> (raw)
In-Reply-To: <4161.1322701822@sss.pgh.pa.us>
References: <CAMp0ubdWEv63h4x_cap_LKUcXGcbS7++3GyQaJrMq9pAHVCoSA@mail.gmail.com>
	<4161.1322701822@sss.pgh.pa.us>

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




view thread (6+ messages)  latest in thread

Message-ID: <1322724101.24279.26.camel@jdavis>
Permalink:  ../1322724101.24279.26.camel@jdavis/
Also on:    postgresql.org/message-id/1322724101.24279.26.camel@jdavis

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pgsql@j-davis.com, tgl@sss.pgh.pa.us
  Subject: Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs
  In-Reply-To: <1322724101.24279.26.camel@jdavis>
  References: <CAMp0ubdWEv63h4x_cap_LKUcXGcbS7++3GyQaJrMq9pAHVCoSA@mail.gmail.com> <4161.1322701822@sss.pgh.pa.us> <1322724101.24279.26.camel@jdavis>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox