Re: Retrieve results in PostgreSQL stored procedure allowing query parallelism

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Joan Pujol <joanpujol(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Retrieve results in PostgreSQL stored procedure allowing query parallelism
Date: 2023-11-21 19:30:04
Message-ID: CAKFQuwaiF1bbuy7X3RKkXu6GG7EaAchS5kWL1W3dBdzqojnuwQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Nov 21, 2023 at 11:31 AM Joan Pujol <joanpujol(at)gmail(dot)com> wrote:

> If I try to do something like:
> EXECUTE SELECT INTO ARRAY_AGG(t.*) INTO result_records
> Would internally use cursors too and have the same restrictions?
>
>
Producing a single row single column result and then storing it into a
variable should leverage parallelism if the query is amenable to it.

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Johnson, Bruce E - (bjohnson) 2023-11-21 23:27:29 Connection fails on one system in a address range allowed to connect
Previous Message CG 2023-11-21 18:41:24 Removing oids with pg_repack