Refcursor

From: Yambu <hyambu(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Refcursor
Date: 2021-03-15 11:58:50
Message-ID: CALhHtcCHJ=qk7E-v4LiOiC=2DDDWjjc_FTPem_8MtbjUEovm4g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

I new to cursors

May I know why the below takes so long?

BEGIN;
select * from func1() ;
fetch all from "<unnamed portal 1>";
end;

Select * from func1() ; on its own is very fast

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2021-03-15 13:39:44 Re: Refcursor
Previous Message RaviKrishna 2021-03-15 11:36:38 Postgres vacuum taking gitlab down ???