Re: Assign the system timezone to a variable in a function?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Assign the system timezone to a variable in a function?
Дата
Msg-id 5276.1306244960@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Assign the system timezone to a variable in a function?  (Merlin Moncure <mmoncure@gmail.com>)
Ответы Re: Assign the system timezone to a variable in a function?  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-novice
Merlin Moncure <mmoncure@gmail.com> writes:
> On Tue, May 24, 2011 at 8:09 AM, Steve Murphy <smurphy@intorrent.com> wrote:
>> Take the result of "show timezone", and assign it to a variable
>> in a function.

> I was about to suggest querying the pg_settings table, then noticed
> there was no 'timezone' record in it, which is pretty odd imo.  You
> can look at the log_timezone record however, which might be correct.

It's spelled "TimeZone" for historical reasons.  See also the
current_setting() function.

            regards, tom lane

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Assign the system timezone to a variable in a function?
Следующее
От: Merlin Moncure
Дата:
Сообщение: Re: Assign the system timezone to a variable in a function?