Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wr8a7-0004UA-AK for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 16:25:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wr8a5-0002ze-Vp for pgsql-jdbc@arkaria.postgresql.org; Sun, 01 Jun 2014 16:25:58 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wr8a4-0002zT-Vs; Sun, 01 Jun 2014 16:25:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wr8Zx-0003K5-Ao; Sun, 01 Jun 2014 16:25:55 +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 s51GPjmx014864; Sun, 1 Jun 2014 12:25:45 -0400 From: Tom Lane To: David Wall cc: pgsql-jdbc@postgresql.org, pgsql-general@postgresql.org Subject: Re: Upgrading from PG 8.3.3 to 9.3.4 - FATAL: invalid value for parameter "TimeZone": "PST" In-reply-to: <538AD3B3.9060909@computer.org> References: <538ACAFE.1050404@computer.org> <538AD3B3.9060909@computer.org> Comments: In-reply-to David Wall message dated "Sun, 01 Jun 2014 00:18:11 -0700" Date: Sun, 01 Jun 2014 12:25:45 -0400 Message-ID: <14863.1401639945@sss.pgh.pa.us> X-Pg-Spam-Score: -2.6 (--) 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 David Wall writes: > The exception occurs when JDBC tries to connect to PG: > 2014-05-31 22:14:34,351 ERROR (eSignForms) SQLException: > ConnectionPool.makeConnection(esf) to URL: > jdbc:postgresql://localhost.localdomain:25432/zingr: > 2014-05-31 22:14:34,352 ERROR (eSignForms) Message: FATAL: invalid > value for parameter "TimeZone": "PST" > org.postgresql.util.PSQLException: FATAL: invalid value for parameter > "TimeZone": "PST" Hm. libpq will try to set TimeZone at connection time if it sees a value for the environment variable "PGTZ"; so, if you were using libpq, this would be explainable by different environment settings in different cases. There is probably some comparable behavior in the JDBC driver, but I don't know exactly what. One hole in this type of theory is that it doesn't explain a behavioral difference between 8.3.x and 9.3.x; unless maybe the JDBC driver's behavior changed in this regard since then. libpq has done the PGTZ thing for a very long time. 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