pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Wall <d.wall@computer.org>
To: pgsql-general@postgresql.org
Subject: Re: Upgrading from PG 8.3.3 to 9.3.4 - FATAL:  invalid value for parameter "TimeZone": "PST"
Date: Sun, 01 Jun 2014 00:16:58 -0700
Message-ID: <538AD36A.3010002@computer.org> (raw)
In-Reply-To: <538AD2C7.6080107@yozons.com>
References: <538ACAFE.1050404@computer.org>
	<538ACC7D.9050302@hogranch.com>
	<538AD2C7.6080107@yozons.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

> On 5/31/2014 11:47 PM, John R Pierce wrote:
>> On 5/31/2014 11:41 PM, David Wall wrote:
>>>
>>>  FATAL:  invalid value for parameter "TimeZone": "PST" 
>>
>> I'd be using "America/Los_Angeles" as the timezone rather than PST, 
>> as the TLA timezones are ambiguous (CST is both Central Standard Time 
>> in the USA, and China Standard Time).
>>
>> but thats probably not the problem, hard to guess what is, sounds 
>> like you have a lot going on.
>

PG itself has the timezone US/Pacific set in postgresql.conf

In Linux, we show:
lrwxrwxrwx 1 root root 39 Apr 23 16:00 /etc/localtime -> 
/usr/share/zoneinfo/America/Los_Angeles

Even when we use PST in our Java code, we use PST8PDT.

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"
         at 
org.postgresql.core.v3.ConnectionFactoryImpl.readStartupMessages(ConnectionFactoryImpl.java:574)
         at 
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:177)
         at 
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:64)
         at 
org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:138)
         at 
org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:29)
         at 
org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:21)
         at 
org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:31)
         at 
org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
         at org.postgresql.Driver.makeConnection(Driver.java:410)
         at org.postgresql.Driver.connect(Driver.java:280)
         at java.sql.DriverManager.getConnection(DriverManager.java:571)
         at java.sql.DriverManager.getConnection(DriverManager.java:215)
         at 
com.esignforms.db.ConnectionPool.makeConnection(ConnectionPool.java:302)

And of course none seems to explain why it works often enough, but then 
fails as more apps are deployed.  Ugh!


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (9+ messages)  latest in thread

Message-ID: <538AD36A.3010002@computer.org>
Permalink:  ../538AD36A.3010002@computer.org/
Also on:    postgresql.org/message-id/538AD36A.3010002@computer.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: d.wall@computer.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: <538AD36A.3010002@computer.org>
  References: <538ACAFE.1050404@computer.org> <538ACC7D.9050302@hogranch.com> <538AD2C7.6080107@yozons.com> <538AD36A.3010002@computer.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox