Re: setting local time without restarting server

Поиск
Список
Период
Сортировка
От Anony Mous
Тема Re: setting local time without restarting server
Дата
Msg-id 000001c43925$fe547ea0$7402a8c0@PETER
обсуждение исходный текст
Ответ на Re: setting local time without restarting server  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: setting local time without restarting server  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Thanks, but I do want to set the system time.

It's actually for testing purposes.  Our software looks to the db server to
obtain the local date and time, however, to test various cases we need to
fiddle with this value.  I'd like to do it without having to first change
the system time, and then re-start the postmaster.  Sorry, I should have
clarified this in my first e-mail.

-Peter

-----Original Message-----
From: Bruno Wolff III [mailto:bruno@wolff.to]
Sent: May 13, 2004 2:07 PM
To: Anony Mous
Cc: pgsql-general@postgresql.org
Subject: Re: [GENERAL] setting local time without restarting server

On Thu, May 13, 2004 at 12:56:48 -0600,
  Anony Mous <A.Mous@shaw.ca> wrote:
> Hi,
>
> Is there a function that would allow me to set the local time while the
> server is running?  I can't seem to find anything on this...

You probably want to set the timezone, not the local time.
You can do that with something like:
SET TIMEZONE='EST5EDT';


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

Предыдущее
От: Gregory Wood
Дата:
Сообщение: Re: dbmirror
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: setting local time without restarting server