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

From: Gavin Roy <gavinr(at)aweber(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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:06:05
Message-ID: CAFVAjJEd_SDPWAFECi7SoParkoWAPBP15+2iXv_KjZXNDHd3Ug@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks so much Tom!

Regards,

Gavin

On Thu, Oct 7, 2021 at 3:05 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> 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

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2021-10-07 20:14:30 Re: Misplaced double quotes in error message
Previous Message Gavin Roy 2021-10-07 19:05:27 Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14