Re: date_trunc on date is immutable?

Поиск
Список
Период
Сортировка
Искать
От
Greg Stark
Тема
Re: date_trunc on date is immutable?
Дата
Msg-id
407d949e0912250645x6b083656t1e7c0c6bf65dc514@mail.gmail.com
Ответ на
Список
Дерево обсуждения
date_trunc on date is immutable? Kian Wright <kian.wright@senioreducators.com>
Re: date_trunc on date is immutable? Scott Marlowe <scott.marlowe@gmail.com>
Re: date_trunc on date is immutable? Greg Stark <gsstark@mit.edu>
Re: date_trunc on date is immutable? Tom Lane <tgl@sss.pgh.pa.us>
Re: date_trunc on date is immutable? Scott Marlowe <scott.marlowe@gmail.com>
Re: date_trunc on date is immutable? Greg Stark <gsstark@mit.edu>
On Fri, Dec 25, 2009 at 1:58 AM, Scott Marlowe  wrote:
> Isn't it the client timezone and not the system timezone that actually
> sets the tz the tstz is set to on retrieval?

It's the GUC:

stark=> set timezone = 'America/Los_Angeles';
SET
stark=> select now();
              now
-------------------------------
 2009-12-25 06:44:33.238187-08
(1 row)


I'm not sure if and how we initialize the GUC on a new connection
though. It might vary depending on the driver you use too.


-- 
greg
В списке pgsql-general по дате отправления
От: Farhan Malik
Дата:
Сообщение: Out of space making backup
От: John R Pierce
Дата:
FAQ