Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bpEiZ-0000kV-VV for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2016 13:16:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bpEiZ-0001Sd-Hx for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Sep 2016 13:16:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpEhC-0008B6-CK for pgsql-hackers@postgresql.org; Wed, 28 Sep 2016 13:14:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bpEh9-0001zh-Oe for pgsql-hackers@postgresql.org; Wed, 28 Sep 2016 13:14:45 +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 u8SDEfiJ015947; Wed, 28 Sep 2016 09:14:41 -0400 From: Tom Lane To: Robert Haas cc: "pgsql-hackers@postgresql.org" Subject: Re: psql casts aspersions on server reliability In-reply-to: References: Comments: In-reply-to Robert Haas message dated "Wed, 28 Sep 2016 08:22:11 -0400" Date: Wed, 28 Sep 2016 09:14:41 -0400 Message-ID: <15946.1475068481@sss.pgh.pa.us> X-Pg-Spam-Score: -4.9 (----) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Robert Haas writes: > psql tends to do things like this: > rhaas=# select * from pg_stat_activity; > FATAL: terminating connection due to administrator command > server closed the connection unexpectedly > This probably means the server terminated abnormally > before or while processing the request. > Basically everything psql has to say about this is a lie: I cannot get terribly excited about this. What you seem to be proposing is that psql try to intuit the reason for connection closure from the last error message it got, but that seems likely to lead to worse lies than printing a boilerplate message. I could go along with just dropping the last sentence ("This probably...") if the last error we got was FATAL level. I don't find "unexpectedly" to be problematic here: from the point of view of psql, and probably of its user, the shutdown *was* unexpected. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers