Re: Time is off in PG server

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ericson Smith <eric(at)did-it(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Time is off in PG server
Date: 2004-08-26 15:31:52
Message-ID: 18014.1093534312@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Ericson Smith <eric(at)did-it(dot)com> writes:
> I realized I made a mistake in that initial email (should have said 12am
> instead of pm). However, I tried:

>>> set local time zone 'EST5EDT';
> SET
>>> select now();

"set local" was probably not what you wanted to use here. Per the man page:

Note that SET LOCAL will appear to have no effect if it is executed outside
a BEGIN block, since the transaction will end immediately.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Naomi Walker 2004-08-26 16:11:32 Re: Size of database
Previous Message Ericson Smith 2004-08-26 15:22:05 Re: Time is off in PG server