dbTalk Databases Forums  

[BUGS] BUG #2350: Timezone string fails in a certain context (see below).

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2350: Timezone string fails in a certain context (see below). in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gloria W
 
Posts: n/a

Default [BUGS] BUG #2350: Timezone string fails in a certain context (see below). - 03-22-2006 , 10:40 AM







The following bug has been logged online:

Bug reference: 2350
Logged by: Gloria W
Email address: strangest (AT) comcast (DOT) net
PostgreSQL version: 8.1.2
Operating system: Red Hat 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT
Description: Timezone string fails in a certain context (see below).
Details:

This statement works just fine:

insert into tasks (client_id, task_id, scheduled_time,
scheduled_time_required) values(699,4,('2006-03-20 09:06:00 PST' at time
zone 'US/Eastern'),'2006-03-20 06:00:00');
INSERT 0 1


But this one fails:

lii_hardware=# insert into tasks (client_id, task_id, scheduled_time,
scheduled_time_required) values(699,4,('2006-03-20 09:06:00 US/Pacific' at
time zone 'US/Eastern'),'2006-03-20 06:00:00');
ERROR: invalid input syntax for type timestamp with time zone: "2006-03-20
09:06:00 US/Pacific"


The only difference between the two is the PST timezone string was replaced
with a longer, also correct, timezone string.

Thank you in advance for your help.

Gloria

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #2350: Timezone string fails in a certain context (see below). - 03-22-2006 , 11:14 AM






"Gloria W" <strangest (AT) comcast (DOT) net> writes:
Quote:
ERROR: invalid input syntax for type timestamp with time zone: "2006-03-20
09:06:00 US/Pacific"
That is not currently supported, sorry. Timestamp input can only use
the timezone names known to the "date token table", which basically
is the short abbreviations like PST. It'll get fixed eventually but
it's a feature enhancement not a bug.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.