pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBug in postgres log file
2+ messages / 2 participants
[nested] [flat]
* Bug in postgres log file
@ 2017-02-02 09:14 Bogdan Bykhovets - ControlPay <b.bykhovets@controlpay.com>
0 siblings, 0 replies; 2+ messages in thread
From: Bogdan Bykhovets - ControlPay @ 2017-02-02 09:14 UTC (permalink / raw)
To: pgsql-bugs
Hello,
please help us.
Postgres writes in to the log file the same date and time(server starts date
and time) for all checkpoint operations. For other operations for example
long queries or errors postgres writes in to the log current date and time.
> select version();
PostgreSQL 9.6.0 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux)
4.3.4 [gcc-4_3-branch revision 152973], 64-bit
In attachment you can find:
log file example
postgres.conf
Bogdan Bykhovets
DevOps Engineer
<mailto:b.bykhovets@controlpay.com> b.bykhovets@controlpay.com
ControlPay - The global Freight Audit company
Mobile: +380 63 8636363
Office: +380 44 585 5935; +380 44 585 5936
_____
Visit us at: <https://www.controlpay.com/; www.controlpay.com
LinkedIn: <https://www.linkedin.com/company/controlpay-bv; ControlPay-BV
Twitter: <https://twitter.com/ControlPay; @ControlPay
This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.
ControlPay is neither liable for the proper and complete transmission of the
information contained in this communication nor for delay in its receipt.
ControlPay does not guarantee that the integrity of this communication has
been maintained nor that the communication is free of viruses, interceptions
or interference.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
Attachments:
image001.gif (image/gif, 3.4K) download
view image
postgresql.auto.conf (application/octet-stream, 89B) download
postgresql.conf (application/octet-stream, 20.8K) download
postgresql-2017-02-02_000000.log (application/octet-stream, 19.1K) download
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Bug in postgres log file
@ 2017-02-02 15:20 bricklen <bricklen@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: bricklen @ 2017-02-02 15:20 UTC (permalink / raw)
To: Bogdan Bykhovets - ControlPay <b.bykhovets@controlpay.com>; +Cc: pgsql-bugs
On Thu, Feb 2, 2017 at 1:14 AM, Bogdan Bykhovets - ControlPay <
b.bykhovets@controlpay.com> wrote:
>
>
> Postgres writes in to the log file the same date and time(server starts
> date and time) for all checkpoint operations. For other operations for
> example long queries or errors postgres writes in to the log current date
> and time.
>
>
>
> *> **select version();*
>
> *PostgreSQL 9.6.0 on x86_64-suse-linux-gnu, compiled by gcc (SUSE Linux)
> 4.3.4 [gcc-4_3-branch revision 152973], 64-bit*
>
>
>
Try changing your log_line_prefix to
log_line_prefix = '%p %u %m %e %i'
and reloading your postgresql.conf files (eg. pg_ctl reload)
I suspect the "%s" session timestamp is the problem, and you might be
looking for the wall clock time instead (which is logged via "%m")
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-02-02 15:20 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-02 09:14 Bug in postgres log file Bogdan Bykhovets - ControlPay <b.bykhovets@controlpay.com>
2017-02-02 15:20 Re: Bug in postgres log file bricklen <bricklen@gmail.com>
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