Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6E5g-0005Gu-V3 for pgsql-jdbc@arkaria.postgresql.org; Mon, 05 Aug 2013 06:16:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1V6E5g-0004zH-DI for pgsql-jdbc@arkaria.postgresql.org; Mon, 05 Aug 2013 06:16:24 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6E5e-0004xg-Td for pgsql-jdbc@postgresql.org; Mon, 05 Aug 2013 06:16:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1V6E5X-0003Ci-PM for pgsql-jdbc@postgresql.org; Mon, 05 Aug 2013 06:16:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id r756GEc9029760; Mon, 5 Aug 2013 02:16:14 -0400 From: Tom Lane To: Alexandre Gattiker cc: pgsql-jdbc@postgresql.org Subject: Re: JDBC driver 9.2 sending arbitrary timezone In-reply-to: References: Comments: In-reply-to Alexandre Gattiker message dated "Mon, 05 Aug 2013 06:18:59 +0200" Date: Mon, 05 Aug 2013 02:16:14 -0400 Message-ID: <29759.1375683374@sss.pgh.pa.us> X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Alexandre Gattiker writes: > PostgreSQL jdbc jar 9.2-1003-jdbc4 is failing for me, while version > 9.1-901-1.jdbc4 works fine. I was able to reproduce the issue by running > the jdbc driver's unit tests. > It appears the client is sending to the server the > timezone Europe/Busingen, although my timezone is set to Europe/Zurich. According to the Olsen timezone database, Europe/Busingen is an alias for Europe/Zurich. So while it's an interesting question why the client side is sending "Europe/Busingen" not "Europe/Zurich", you should get the same result either way. And it's not hard to imagine that there might be logic somewhere inside Java that causes one to be substituted for the other. However, a look into the Olsen source files suggests that Europe/Busingen was only added as a zone name in 2011. When was your last server update? I don't know whether EDB relies on the system tzdata package, so either the postgres package or the tzdata package might be old ... regards, tom lane -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc