From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Cc: Petr Fedorov <petr.fedorov@phystech.edu>
Cc: 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
Date: Thu, 21 Feb 2019 23:43:13 -0500
Message-ID: <3381.1550810593@sss.pgh.pa.us> (raw)
In-Reply-To: <6a08a294-6a16-e384-db25-8f4d3cc026d1@lab.ntt.co.jp>
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>
Amit Langote <Langote_Amit_f8@lab.ntt.co.jp> writes:
> Also, I noticed regression test failure having to do with statement
> triggers not firing, which makes sense, as there's no ModifyTable to
> invoke them.
Oh! You are right, that's a separate bug. So really we can't have
this fast-path exit at all, we should produce a ModifyTable node in
every case.
I'm too tired to work on that anymore today, do you want to run
with it?
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, Langote_Amit_f8@lab.ntt.co.jp, petr.fedorov@phystech.edu
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: <3381.1550810593@sss.pgh.pa.us>
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>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox