Re: BUG #16040: PL/PGSQL RETURN QUERY statement never uses a parallel plan

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Marc Bachmann <marc(dot)brookman(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, jeremy(at)musicsmith(dot)net, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #16040: PL/PGSQL RETURN QUERY statement never uses a parallel plan
Date: 2021-10-03 17:22:48
Message-ID: 3899523.1633281768@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

I wrote:
> Marc Bachmann <marc(dot)brookman(at)gmail(dot)com> writes:
>> A function that inserts data and tries to return with a table now results in the error `query is not a SELECT`.
>> In previous versions that query succeeded.

> Hmm ... I'm a bit surprised that that worked before, but since it did,
> we shouldn't break it.

Fix pushed, thanks for the report!

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Marc Bachmann 2021-10-03 18:01:56 Re: BUG #16040: PL/PGSQL RETURN QUERY statement never uses a parallel plan
Previous Message Mark Dilger 2021-10-03 17:04:19 Re: BUG #17212: pg_amcheck fails on checking temporary relations

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2021-10-03 17:30:38 Re: ssl tests fail on windows / slurp_file() offset doesn't work on win
Previous Message Andres Freund 2021-10-03 17:18:31 ssl tests fail on windows / slurp_file() offset doesn't work on win