Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UaimH-0002LT-Ml for pgsql-bugs@arkaria.postgresql.org; Fri, 10 May 2013 08:34:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UaimH-0000CL-2A for pgsql-bugs@arkaria.postgresql.org; Fri, 10 May 2013 08:34:09 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UaimG-0000CG-FJ for pgsql-bugs@postgresql.org; Fri, 10 May 2013 08:34:08 +0000 Received: from mout.wup.tal.de ([81.92.1.6] helo=smtp-a.tal.de) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UaimC-0002H3-PI for pgsql-bugs@postgresql.org; Fri, 10 May 2013 08:34:08 +0000 Received: from [81.92.0.163] (dev3.tal.de [81.92.0.163]) (Authenticated sender: duesterloh@tal.de) by smtp-a.tal.de (Postfix) with ESMTP id 7AFEA1254296 for ; Fri, 10 May 2013 10:34:02 +0200 (CEST) Message-ID: <518CB0FA.2080702@tal.de> Date: Fri, 10 May 2013 10:34:02 +0200 From: =?ISO-8859-1?Q?Karsten_D=FCsterloh?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 SeaMonkey/2.17 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Strange time zone +00:53:28 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -3.2 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi! Recently, we switched from Pg 8.3 to Pg 9.1, using Pg9's pg_upgrade to migrate our cluster. The cluster itself is running on a Debian 6 machine with timezone Europe/Berlin, which means UTC+02 currently. Under Pg 8.3, we used the timestamp 0001-01-01 00:00:00+01 as an easy-to-remember marker for 'dunno, but predates any usual business dates' for fields of type timestamp with time zone. With Pg 9.1, these timestamps now appear as 0001-12-31 23:53:28+00:53:28 BC (using a current psql shell in both cases). If I try to reset the timestamp, eg by update testtable set ts='0001-01-01'; the result is 0001-01-01 00:00:00+00:53:28 Specifying the time explicitly update testtable set ts='0001-01-01 00:00:00+01:00:00'; results in 0001-12-31 23:53:28+00:53:28 BC again, hence I'd suspect that somehow the textual representation of such timestamps is broken?! Any ideas? Is this a known bug (I didn't find), maybe fixed in 9.2? Karsten -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs