Regression in PL/PGSQL code using RETURN QUERY with Postgres 14 - Mailing list pgsql-general

From Gavin Roy
Subject Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
Date
Msg-id CAFVAjJEN65VJY21DgWZXSKu6Q-hHJ67Frz3Opz3ACmP1yxAePQ@mail.gmail.com
Whole thread Raw
Responses Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
Re: Regression in PL/PGSQL code using RETURN QUERY with Postgres 14
List pgsql-general
Hi All,

My team was testing against Postgres 14 to ensure we could cleanly upgrade and we ran across a regression in our PL/PGSQL code related to the updates to RETURN QUERY.

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.

Was this an intentional change in behavior? We can easily refactor our PL/PGSQL functions to deal with the change, but if it was intentional, perhaps it should be documented.

Regards,

Gavin

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Timestamp with vs without time zone.
Next
From: Bruce Momjian
Date:
Subject: Re: Currently running queries with actual arguments?