Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxEaN-00028V-Vm for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Feb 2019 17:26:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gxEaM-0002gO-OP for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Feb 2019 17:26:06 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxEaM-0002gE-I4 for pgsql-bugs@lists.postgresql.org; Fri, 22 Feb 2019 17:26:06 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gxEaK-00088E-J4 for pgsql-bugs@postgresql.org; Fri, 22 Feb 2019 17:26:06 +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 x1MHPwLu016106; Fri, 22 Feb 2019 12:25:58 -0500 From: Tom Lane To: Amit Langote cc: Petr Fedorov , pgsql-bugs@postgresql.org Subject: Re: 'update returning *' returns 0 columns instead of empty row with 2 columns when (i) no rows updated and (ii) when applied to a partitioned table with sub-partition In-reply-to: References: <5da6f0f0-1364-1876-6978-907678f89a3e@phystech.edu> <907bb879-872e-8395-80af-1b98efc10b06@lab.ntt.co.jp> <13543.1550787490@sss.pgh.pa.us> <6a08a294-6a16-e384-db25-8f4d3cc026d1@lab.ntt.co.jp> <3381.1550810593@sss.pgh.pa.us> Comments: In-reply-to Amit Langote message dated "Fri, 22 Feb 2019 14:33:55 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16104.1550856358.1@sss.pgh.pa.us> Date: Fri, 22 Feb 2019 12:25:58 -0500 Message-ID: <16105.1550856358@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Amit Langote writes: > On 2019/02/22 13:43, Tom Lane wrote: >> I'm too tired to work on that anymore today, do you want to run >> with it? > Sure, see attached a patch. OK, I prettified this a bit and pushed it. regards, tom lane