Re: Setting time zone commands

From: "cnliou" <cnliou(at)so-net(dot)net(dot)tw>
To: "" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Setting time zone commands
Date: 2003-12-03 03:41:33
Message-ID: 1070422893.76191.cnliou@so-net.net.tw
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Includem"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>nwrote:
>> So, what is the official syntax?
>
>See the SET command's reference page. I believe you need
to quote
>anything that doesn't look like an identifier or number.

Thank you very much! You have clarified all my timestamp and
time zone questions except the last minor two as follows:

(1) The query using UTC offset hours (SET TIME ZONE '<0 - 23
integers>') to set time zone will be the legal SQL command
for quite a while, won't it?

(2) What is the correct syntax to set time zones having 30
minutes offset UTC?

db1=# set time zone '08:30';
ERROR: unrecognized time zone name: "08:30"
db1=# set time zone 08:30;
ERROR: syntax error at or near ":" at character 17
db1=# set time zone '-03:30';
ERROR: unrecognized time zone name: "-03:30"
db1=# set time zone 'NST';
ERROR: unrecognized time zone name: "NST"

Regards,
CN

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-12-03 04:52:02 Re: Setting time zone commands
Previous Message Joseph Tate 2003-12-02 23:41:35 Bug in pg_restore or in postmaster itself?