Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)

Поиск
Список
Период
Сортировка
От Ian Lance Taylor
Тема Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)
Дата
Msg-id sik8364o3u.fsf@daffy.airs.com
обсуждение исходный текст
Ответ на Re: Bug#98565: postgresql logs notices with GMT timestamps in syslog (fwd)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Mikheev, Vadim"
Дата:
Сообщение: RE: Plans for solving the VACUUM problem
Следующее
От: David Kuczek
Дата:
Сообщение: Re: Re: Shared memory for RH Linux 7.1