Search Postgresql Archives

Re: setting local time without restarting server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:  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';


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
      subscribe-nomail command to majordomo@postgresql.org so that your
      message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux