From: | Anony Mous <A(dot)Mous(at)shaw(dot)ca> |
---|---|
To: | 'Bruno Wolff III' <bruno(at)wolff(dot)to> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: setting local time without restarting server |
Date: | 2004-05-13 20:08:01 |
Message-ID: | 000001c43925$fe547ea0$7402a8c0@PETER |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)wolff(dot)to]
Sent: May 13, 2004 2:07 PM
To: Anony Mous
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: [GENERAL] setting local time without restarting server
On Thu, May 13, 2004 at 12:56:48 -0600,
Anony Mous <A(dot)Mous(at)shaw(dot)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';
From | Date | Subject | |
---|---|---|---|
Next Message | Gregory Wood | 2004-05-13 20:10:34 | Re: dbmirror |
Previous Message | Bruno Wolff III | 2004-05-13 20:07:13 | Re: setting local time without restarting server |