pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
SQLSTATE 00000 and message level LOG get logged when a server process crashes 2+ messages / 2 participants [nested] [flat]
* SQLSTATE 00000 and message level LOG get logged when a server process crashes @ 2014-07-16 07:14 Vadim Kalinkin <vadim.kalinkin@gmail.com> 2014-07-16 14:44 ` Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 1 reply; 2+ messages in thread From: Vadim Kalinkin @ 2014-07-16 07:14 UTC (permalink / raw) To: pgsql-bugs Hello! Say, some worker process was terminated for whatever reason. In logfile that fact is reflected with messages by postmaster: 00000 2014-07-16 09:10:15.442 MSK [1755-5] d=,u=,h= LOG: server process (PID 12652) was terminated by signal 11: Segmentation fault 00000 2014-07-16 09:10:15.442 MSK [1755-6] d=,u=,h= DETAIL: Failed process was running: select * from <...> 00000 2014-07-16 09:10:15.442 MSK [1755-7] d=,u=,h= LOG: terminating any other active server processes (log_line_prefix = '%e %m [%p-%l] d=%d,u=%u,h=%h ') Why SQLSTATE 00000 and message level LOG are used here? Wouldn't SQLSTATE of Class 58 (System Error) and message level ERROR or FATAL be more suitable here? I'm asking because my log analyzer (pgBadger) completely missed that event. Thanks. ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes 2014-07-16 07:14 SQLSTATE 00000 and message level LOG get logged when a server process crashes Vadim Kalinkin <vadim.kalinkin@gmail.com> @ 2014-07-16 14:44 ` Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 0 replies; 2+ messages in thread From: Tom Lane @ 2014-07-16 14:44 UTC (permalink / raw) To: Vadim Kalinkin <vadim.kalinkin@gmail.com>; +Cc: pgsql-bugs Vadim Kalinkin <vadim.kalinkin@gmail.com> writes: > Say, some worker process was terminated for whatever reason. > In logfile that fact is reflected with messages by postmaster: > 00000 2014-07-16 09:10:15.442 MSK [1755-5] d=,u=,h= LOG: > server process (PID 12652) was terminated by signal 11: Segmentation fault > 00000 2014-07-16 09:10:15.442 MSK [1755-6] d=,u=,h= DETAIL: > Failed process was running: select * from <...> > 00000 2014-07-16 09:10:15.442 MSK [1755-7] d=,u=,h= LOG: > terminating any other active server processes > (log_line_prefix = '%e %m [%p-%l] d=%d,u=%u,h=%h ') > Why SQLSTATE 00000 and message level LOG are used here? > Wouldn't SQLSTATE of Class 58 (System Error) and message level ERROR or > FATAL be more suitable here? ERROR or FATAL would mean that the postmaster itself was about to terminate, which is not the case here. We can't do anything different than LOG; that's actually the "most severe" non-terminating log level available to a background process. It is a bit bogus that there's no SQLSTATE assigned, perhaps. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2014-07-16 14:44 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2014-07-16 07:14 SQLSTATE 00000 and message level LOG get logged when a server process crashes Vadim Kalinkin <vadim.kalinkin@gmail.com> 2014-07-16 14:44 ` Tom Lane <tgl@sss.pgh.pa.us>
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