Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id DA115914534 for ; Thu, 1 Dec 2011 03:21:38 -0400 (AST) Received: from mail-iy0-f174.google.com ([209.85.210.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RW0xe-0000CH-Np for pgsql-bugs@postgresql.org; Thu, 01 Dec 2011 07:21:39 +0000 Received: by iage36 with SMTP id e36so2057756iag.19 for ; Wed, 30 Nov 2011 23:21:26 -0800 (PST) Received: by 10.42.29.137 with SMTP id r9mr6815511icc.20.1322724086193; Wed, 30 Nov 2011 23:21:26 -0800 (PST) Received: from [192.168.1.102] (c-69-181-249-16.hsd1.ca.comcast.net. [69.181.249.16]) by mx.google.com with ESMTPS id e2sm17968972ibe.0.2011.11.30.23.21.24 (version=SSLv3 cipher=OTHER); Wed, 30 Nov 2011 23:21:25 -0800 (PST) Message-ID: <1322724101.24279.26.camel@jdavis> Subject: Re: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs From: Jeff Davis To: Tom Lane Cc: pgsql-bugs@postgresql.org Date: Wed, 30 Nov 2011 23:21:41 -0800 In-Reply-To: <4161.1322701822@sss.pgh.pa.us> References: <4161.1322701822@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.1- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201112/1 X-Sequence-Number: 31812 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