Retrieve results in PostgreSQL stored procedure allowing query parallelism

From: Joan Pujol <joanpujol(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Retrieve results in PostgreSQL stored procedure allowing query parallelism
Date: 2023-11-21 18:10:15
Message-ID: CACdKRvKahtBBV2DrfDO5rWAgY2YKSBzuZCpuGTaSEpvOxV62Fw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I want to execute an SQL query and process its results inside a stored
procedure without preventing query parallelism. Since I don't want to
prevent query parallelism, cursors can't be used, and I would like to
avoid creating a temporal table.

Is this possible? If so, what is the best way to execute the query,
retrieve all results in memory, and process them inside the stored
procedure?

--
Joan Pujol

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2023-11-21 18:21:58 Re: Retrieve results in PostgreSQL stored procedure allowing query parallelism
Previous Message Adrian Klaver 2023-11-21 15:43:23 Re: client/server versions