pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Gavin Roy <gavinr@aweber.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
Date: Thu, 07 Oct 2021 15:05:00 -0400
Message-ID: <162604.1633633500@sss.pgh.pa.us> (raw)
In-Reply-To: <CAFVAjJEN65VJY21DgWZXSKu6Q-hHJ67Frz3Opz3ACmP1yxAePQ@mail.gmail.com>
References: <CAFVAjJEN65VJY21DgWZXSKu6Q-hHJ67Frz3Opz3ACmP1yxAePQ@mail.gmail.com>

Gavin Roy <gavinr@aweber.com> writes:
> Our code which works in previous versions of Postgres uses UPDATE RETURNING
> and INSERT RETURNING in combination with RETURN QUERY. It appears that in
> the parallelism updates, RETURN QUERY now only accepts SELECT queries.

Yeah, that's a mistake, previously reported and fixed at

https://git.postgresql.org/gitweb/?p=postgresql.git&a=commitdiff&h=e0eba586b

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <162604.1633633500@sss.pgh.pa.us>
Permalink:  ../162604.1633633500@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/162604.1633633500@sss.pgh.pa.us

 · 

reply

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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gavinr@aweber.com
  Subject: Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
  In-Reply-To: <162604.1633633500@sss.pgh.pa.us>
  References: <CAFVAjJEN65VJY21DgWZXSKu6Q-hHJ67Frz3Opz3ACmP1yxAePQ@mail.gmail.com> <162604.1633633500@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