pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vadim Kalinkin <vadim.kalinkin@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes
Date: Wed, 16 Jul 2014 10:44:01 -0400
Message-ID: <26572.1405521841@sss.pgh.pa.us> (raw)
In-Reply-To: <CAM0b6+2yPMOfXc6FESOqGonj8tboyMvDx0SsgHDHoC=t4-Efwg@mail.gmail.com>
References: <CAM0b6+2yPMOfXc6FESOqGonj8tboyMvDx0SsgHDHoC=t4-Efwg@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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



view thread (2+ messages)

Message-ID: <26572.1405521841@sss.pgh.pa.us>
Permalink:  ../26572.1405521841@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26572.1405521841@sss.pgh.pa.us

 · 

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, vadim.kalinkin@gmail.com
  Subject: Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes
  In-Reply-To: <26572.1405521841@sss.pgh.pa.us>
  References: <CAM0b6+2yPMOfXc6FESOqGonj8tboyMvDx0SsgHDHoC=t4-Efwg@mail.gmail.com> <26572.1405521841@sss.pgh.pa.us>

* 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