From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ericson Smith <eric@did-it.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Time is off in PG server
Date: Thu, 26 Aug 2004 11:31:52 -0400
Message-ID: <18014.1093534312@sss.pgh.pa.us> (raw)
In-Reply-To: <412E001D.7060408@did-it.com>
References: <412DE9EE.1070207@did-it.com>
<17738.1093532734@sss.pgh.pa.us>
<412E001D.7060408@did-it.com>
Ericson Smith <eric@did-it.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, eric@did-it.com
Subject: Re: Time is off in PG server
In-Reply-To: <18014.1093534312@sss.pgh.pa.us>
References: <412DE9EE.1070207@did-it.com> <17738.1093532734@sss.pgh.pa.us> <412E001D.7060408@did-it.com> <18014.1093534312@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox