Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gavin Roy <gavinr(at)aweber(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
Date: 2021-10-07 19:05:00
Message-ID: 162604.1633633500@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gavin Roy <gavinr(at)aweber(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Roy 2021-10-07 19:05:27 Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
Previous Message Adrian Klaver 2021-10-07 18:54:46 Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14