pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lane Van Ingen <lvaningen@esncc.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Server Time Setting
Date: Tue, 13 Sep 2005 10:47:37 -0400
Message-ID: <EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com> (raw)
In-Reply-To: <6275.1126564924@sss.pgh.pa.us>

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, September 12, 2005 6:42 PM
To: Lane Van Ingen
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] Server Time Setting


"Lane Van Ingen" <lvaningen@esncc.com> writes:
>> I am baffled as to why some of the PostgreSQL functions (like now() ) are
>> returning
>> a time which is exactly an hour later than the server's actual system
time.

> I'd say you've got TimeZone set to something different than you think
> you do.
>			regards, tom lane

Before I asked this question yesterday, I had already checked SHOW ALL and
found only
two PostgreSQL config parameters that seemed to apply, and they were set
properly:
  australian_timezones  = no
  TimeZone              = US/Eastern
We are running 8.0.1, Windows 2003.

Since last message, checked 3 other servers, and found that I have the same
problem
on two out of three:
  Server #1: select now() agreed with Windows time on this one
  Server #2: select now() was exactly one hour greater than Windows time
where config
             parms were set the same as previous paragraph
  Server #3: select now() was exactly one hour greater than Windows time,
but config
             parm was set wrong: TimeZone = Europe/Dublin (don't know how
that happened
             but makes you wonder if TimeZone has anything to do with this
at all!)

Windows 2003 time was set correctly in all four cases.

Summary:
  - one server displays time correctly
  - two servers APPEAR to be set correctly, but time displayed from now() as
one hour
    greater than Windows time
  - one server is set incorrectly, but TimeZone did not appear to have any
effect on the
    time being displayed; now() just displayed time as one hour greater than
Windows time

Being as one server is 'doing it right', there must be some difference, but
so far I have
not found what is different.





view thread (6+ messages)  latest in thread

Message-ID: <EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com>
Permalink:  ../EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com/
Also on:    postgresql.org/message-id/EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com

 · 

reply

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: lvaningen@esncc.com, tgl@sss.pgh.pa.us
  Subject: Re: Server Time Setting
  In-Reply-To: <EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com>
  References: <6275.1126564924@sss.pgh.pa.us> <EKEMKEFLOMKDDLIALABIMEIGCCAA.lvaningen@esncc.com>

* 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