Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1X7QRD-00071B-OV for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 14:44:07 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1X7QRC-0004CI-V4 for pgsql-bugs@arkaria.postgresql.org; Wed, 16 Jul 2014 14:44:06 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7QRC-0004CC-6X for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 14:44:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1X7QR9-0004hL-Em for pgsql-bugs@postgresql.org; Wed, 16 Jul 2014 14:44:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id s6GEi1Jt026573; Wed, 16 Jul 2014 10:44:01 -0400 From: Tom Lane To: Vadim Kalinkin cc: pgsql-bugs@postgresql.org Subject: Re: SQLSTATE 00000 and message level LOG get logged when a server process crashes In-reply-to: References: Comments: In-reply-to Vadim Kalinkin message dated "Wed, 16 Jul 2014 11:14:08 +0400" Date: Wed, 16 Jul 2014 10:44:01 -0400 Message-ID: <26572.1405521841@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Vadim Kalinkin 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