Re: Reuse of REF Cursor - Mailing list pgsql-general

From Tom Lane
Subject Re: Reuse of REF Cursor
Date
Msg-id 2691494.1618163401@sss.pgh.pa.us
Whole thread Raw
In response to RE: Re: Reuse of REF Cursor  ("Abraham, Danny" <danny_abraham@bmc.com>)
Responses RE: Re: Reuse of REF Cursor  ("Abraham, Danny" <danny_abraham@bmc.com>)
List pgsql-general
"Abraham, Danny" <danny_abraham@bmc.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



pgsql-general by date:

Previous
From: "Abraham, Danny"
Date:
Subject: RE: Re: Reuse of REF Cursor
Next
From: "Abraham, Danny"
Date:
Subject: RE: Re: Reuse of REF Cursor