Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4QJE-0004Ub-F8 for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jan 2022 16:35:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n4QJD-0005k9-B0 for pgsql-hackers@arkaria.postgresql.org; Mon, 03 Jan 2022 16:35:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4QJC-0005jx-6g for pgsql-hackers@lists.postgresql.org; Mon, 03 Jan 2022 16:35:43 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n4QJ8-00050D-P6 for pgsql-hackers@lists.postgresql.org; Mon, 03 Jan 2022 16:35:41 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id DDDE13200681; Mon, 3 Jan 2022 11:35:35 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 03 Jan 2022 11:35:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=mmsSJ3TromTfBJfWGKTttmbhKifqadRCXzRV6QQE/ nc=; b=DE8y0H5Bv08kObBbaxtZ5VMtWHTCd+kTGzT6aPmT7KD7orSi7GH1UqE4x APFtPFeOy9fg0pH5Y1XCVhG+Bv256juw2leq6GU4pum9jPSP/mTFQWf0cXRfKBhH W4dpEU8MukVNC+Pa8bsx+/+lqwzXtSgh0g3jO+wrZmOz53yiOwJVLo6sFY20Fwr8 drn+UQ0tAQBGYwY6AcLnZiK+2WY1Y0o6PGVLX5PvnstwiBve4Gw5ibElXncwbKGv xLGj1yKca7HjHlni4pexJQwftZ1EJ0EoI7EOBO+3tMRLkpRjGiwyjvRErWgQGBDA c0pKXZ0YTCd4PjJA/3qND2XKoPYfQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudefuddgledtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvg hrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepfeejgeehteeuhfevvedu leeufedtjeetiefftedvudfhtdeifefgueettdevgefgnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhht segvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Jan 2022 11:35:32 -0500 (EST) Message-ID: <46259d13-5f90-1475-3c85-d7a597a2b862@enterprisedb.com> Date: Mon, 3 Jan 2022 17:35:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.4.1 Subject: Re: psql - add SHOW_ALL_RESULTS option Content-Language: en-US To: Fabien COELHO Cc: "pgsql-hackers@lists.postgresql.org" References: <69C0B369-570C-4524-8EE4-BCCACECB6BEE@amazon.com> <20210412193301.GA11204@alvherre.pgsql> <3738387.1618451507@sss.pgh.pa.us> <451a2111-3757-c511-9413-8f8af531a167@enterprisedb.com> <18c78a01-4a34-9dd4-f78b-6860f1420c8e@enterprisedb.com> <6954328d-96f2-77f7-735f-7ce493a40949@enterprisedb.com> <2570e2ae-fa0f-aac9-f72f-bb59a9983a20@enterprisedb.com> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.12.21 12:40, Fabien COELHO wrote: > This is also a feature/bug of libpq which happens to be hidden by > PQexec: when one command crashes PQgetResult actually returns *2* > results. First one with the FATAL message, second one when libpq figures > out that the connection was lost with the second message appended to the > first. PQexec just happen to silently ignore the first result. I added a > manual reset of the error message when first shown so that it is not > shown twice. It is unclear to me whether the reset should be somewhere > in libpq instead. I added a voluntary crash at the end of the psql test. With this "voluntary crash", the regression test output is now psql ... ok (test process exited with exit code 2) 281 ms Normally, I'd expect this during development if there was a crash somewhere, but showing this during a normal run now, and moreover still saying "ok", is quite weird and confusing. Maybe this type of test should be done in the TAP framework instead.