Re: Reuse of REF Cursor

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Abraham, Danny" <danny_abraham(at)bmc(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Reuse of REF Cursor
Date: 2021-04-11 17:50:01
Message-ID: 2691494.1618163401@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Abraham, Danny" <danny_abraham(at)bmc(dot)com> writes:
> stmt := 'select count(*) from ' || table_name;
> open C1 for execute stmt;
> fetch C1 into rc;
> close C1;
> ...

That still isn't a self-contained example; perhaps more usefully,
you've not told us exactly what error you're seeing, either.

FWIW, I tried executing a fragment like the above in a loop,
and it seemed fine.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Abraham, Danny 2021-04-11 18:02:37 RE: Re: Reuse of REF Cursor
Previous Message Abraham, Danny 2021-04-11 15:45:06 RE: Re: Reuse of REF Cursor