Re: determining supported timezones

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: determining supported timezones
Дата
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE34BE68@algol.sollentuna.se
обсуждение исходный текст
Ответ на determining supported timezones  (Robert Treat <xzilla@users.sourceforge.net>)
Ответы Re: determining supported timezones  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: determining supported timezones  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
>I am trying to figure out if there is a way to determine the timezones
>supported in postgresql from within the database. If you look at
>http://www.postgresql.org/docs/7.4/static/datetime-keywords.html it
>notes that time zone information is system dependent, (I interpret to
>mean that anything I find in /usr/share/zoneinfo on linux should be
>supported, can someone confirm that?)

Yes, that should be it.


> so how can an external app
>determine which timezones are supported given that it could be deployed
>against postgresql databases on different OS's.  My current thinking is
>that there is no way to get a complete list, but perhaps the list of
>known timezones (as listed in the docs) are available?  If it is not,
>will this change in 7.5 now that we have a standard timezone library we
>are using across platforms?

In 7.5, you can check the files in <pgdir>/share/timezone. There is no
function in the backend ATM to show them. I've been thinking of adding
one (as a system view), but didn't get around to it before freeze. (It'd
basically loop over the files in the directory)

//Magnus

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

Предыдущее
От: Robert Treat
Дата:
Сообщение: determining supported timezones
Следующее
От: Robert Treat
Дата:
Сообщение: Re: order of statements in create function