Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd) - Mailing list pgsql-hackers

From Ian Lance Taylor
Subject Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)
Date
Msg-id sik8364o3u.fsf@daffy.airs.com
Whole thread Raw
In response to Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:

> "Oliver Elphick" <olly@lfix.co.uk> writes:
> > Notices are being timestamped in GMT in the syslog, instead of local
> > time like all other log entries.  Here's a fragment from my syslog:
> 
> Curious.  I always assumed that syslog timestamps were supplied by the
> syslog daemon, but to make this happen they'd have to be supplied in the
> syslog client process (viz. the Postgres process).

That is correct.  The syslog(3) function puts a timestamp in front of
the message, and writes it to the syslog daemon.  The string written
to the daemon starts with <N>, where N is the priority and facility
or'ed together.

Ian


pgsql-hackers by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: RE: Plans for solving the VACUUM problem
Next
From: David Kuczek
Date:
Subject: Re: Re: Shared memory for RH Linux 7.1