TIMEZONE names

Поиск
Список
Период
Сортировка
От PG Doc comments form
Тема TIMEZONE names
Дата
Msg-id 162351129153.14472.70810183330436056@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: TIMEZONE names  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: TIMEZONE names  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/datatype-datetime.html
Description:

The documentation states that some timezone names are recognized.  As far as
I understand others aren't.

This seems to be true:
$psql postgres -c "set TIMEZONE='bug' ; show timezone;"
ERROR:  invalid value for parameter "TimeZone": "bug"
$ echo $?
1

However adding a correct numerical offset leads Postgresql to accept a
non-existing timezone name:
$ psql postgres -c "set TIMEZONE='bug-1' ; show timezone;"
$ echo $?
0

Thank you.

В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Clarification needed
Следующее
От: Tom Lane
Дата:
Сообщение: Re: TIMEZONE names