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 1mYomq-0006cK-My for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Oct 2021 12:15:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYomo-0008T6-WA for pgsql-hackers@arkaria.postgresql.org; Fri, 08 Oct 2021 12:15:38 +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 1mYomo-0008Sy-07 for pgsql-hackers@lists.postgresql.org; Fri, 08 Oct 2021 12:15:38 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYomk-0002x4-6Z for pgsql-hackers@lists.postgresql.org; Fri, 08 Oct 2021 12:15:36 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 8C48E5C00E5; Fri, 8 Oct 2021 08:15:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Fri, 08 Oct 2021 08:15:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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=79umaY mWQTRNM7c16Ei6brJRWLPjuJ59XUY/+2SV2zM=; b=RJYEt3O4iPrXs8yLr5MJtL b38z1ja+0ObU2Ev/a79qtJXyRIFgD9/uecPjPsZ9WhlvleI6Qw0oNJ33mZH+wUom Q3PtIsQvMWXC/4heVMgYB0caNbwD3heCJr3s8gCSX2y8bV9SzeUk/1xUQ629qgDu msbVaJ1E2xMC/4I5RkKQlh7IWhvrXpxZxBsYGYW8E0/oSgGN93UGKJ/HXMr981uz Y51nMn3eWpXIlwfk1I3qS9KDw7QQnEeDvkL3dua6jbvfzUQrQlq+3zqtgZYHngmq UF4GydQ5gJAtkRfqZIidjvJFxsijOonumG1fLOFtK7uJNXpThtlF7TBCl20+fRxQ == X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddttddggeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtsehmtderredtfeehnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeevfedtvddugfeuhffhteev leffgefhueeigfeiiedtleeitdfgfeejgedtgfetjeenucffohhmrghinhepphhoshhtgh hrvghsqhhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusg drtghomh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 8 Oct 2021 08:15:32 -0400 (EDT) Subject: Re: psql - add SHOW_ALL_RESULTS option 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> From: Peter Eisentraut Message-ID: <2570e2ae-fa0f-aac9-f72f-bb59a9983a20@enterprisedb.com> Date: Fri, 8 Oct 2021 14:15:31 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------26D2DAE88A07B42478BD193F" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------26D2DAE88A07B42478BD193F Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit On 02.10.21 16:31, Fabien COELHO wrote: >> Attached v9 integrates your tests and makes them work. > > Attached v11 is a rebase. This patch still has a few of the problems reported earlier this year. In [0], it was reported that certain replication commands result in infinite loops because of faulty error handling. This still happens. I wrote a test for it, attached here. (I threw in a few more basic tests, just to have some more coverage that was lacking, and to have a file to put the new test in.) In [1], it was reported that server crashes produce duplicate error messages. This also still happens. I didn't write a test for it, maybe you have an idea. (Obviously, we could check whether the error message is literally there twice in the output, but that doesn't seem very general.) But it's easy to test manually: just have psql connect, shut down the server, then run a query. Additionally, I looked into the Coverity issue reported in [2]. That one is fixed, but I figured it would be good to be able to check your patches with a static analyzer in a similar way. I don't have the ability to run Coverity locally, so I looked at scan-build and fixed a few minor warnings, also attached as a patch. Your current patch appears to be okay in that regard. [0]: https://www.postgresql.org/message-id/69C0B369-570C-4524-8EE4-BCCACECB6BEE@amazon.com [1]: https://www.postgresql.org/message-id/2902362.1618244606@sss.pgh.pa.us [2]: https://www.postgresql.org/message-id/2680034.1618157764@sss.pgh.pa.us --------------26D2DAE88A07B42478BD193F Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0"; name="0001-psql-More-tests.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-psql-More-tests.patch"