Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D38D7A0109B for ; Wed, 30 Nov 2011 17:59:29 -0400 (AST) Received: from mail-gx0-f174.google.com ([209.85.161.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RVsBe-0007y0-4y for pgsql-bugs@postgresql.org; Wed, 30 Nov 2011 21:59:30 +0000 Received: by ggnr5 with SMTP id r5so1112674ggn.19 for ; Wed, 30 Nov 2011 13:59:17 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.197.99 with SMTP id s63mr7286776yhn.14.1322690357804; Wed, 30 Nov 2011 13:59:17 -0800 (PST) Received: by 10.147.64.16 with HTTP; Wed, 30 Nov 2011 13:59:17 -0800 (PST) Date: Wed, 30 Nov 2011 13:59:17 -0800 Message-ID: Subject: possible bug seen with -DCLOBBER_CACHE_ALWAYS and changing GUCs From: Jeff Davis To: pgsql-bugs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201111/211 X-Sequence-Number: 31806 SQL: set datestyle to postgres,us; prepare stmt as select '02-01-2011'::date::text; execute stmt; set datestyle to postgres,euro; execute stmt; deallocate stmt; The results I get with normal debug compilation are: SET PREPARE =A0=A0=A0 text ------------ =A002-01-2011 (1 row) SET =A0=A0=A0 text ------------ =A001-02-2011 (1 row) DEALLOCATE But with -DCLOBBER_CACHE_ALWAYS and -DRELCACHE_FORCE_RELEASE, I get: SET PREPARE =A0 =A0=A0 text ------------ =A002-01-2011 (1 row) SET =A0=A0=A0 text ------------ =A002-01-2011 (1 row) DEALLOCATE Which one of those results is correct? Regards, Jeff Davis