Portal name in cursor

From: Yambu <hyambu(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Portal name in cursor
Date: 2021-03-17 14:53:18
Message-ID: CALhHtcCx8weYqsR=NWHBHzzaSYcVf93jeWTrPbpOnew+0keH9Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

Does anyone know why assigning a string to a refcursor before opening it
makes fetching data faster from a cursor?

begin;
select * from func1() ;
fetch all from "test";
end;

in func1 i set refcursor_variable := 'test';

Browse pgsql-general by date

  From Date Subject
Next Message Fabrízio de Royes Mello 2021-03-17 15:02:32 Re: Getting Involved
Previous Message Laurenz Albe 2021-03-17 14:48:42 Re: SV: Log files polluted with permission denied error messages after every 10 seconds