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

From Tom Lane
Subject Re: Reuse of REF Cursor
Date
Msg-id 2692336.1618164572@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:
> 2021-04-09 08:00:08.692 IDTERROR:  canceling statement due to statement timeout

I don't know why you would think that a statement timeout is somehow
the fault of the refcursor variable you used.  You need to look at
whether your timeout is a sane value, and if so, why it is that
something else is blocking your query for longer than that.
Looking into pg_locks might help identify what the "something else"
is.

            regards, tom lane



pgsql-general by date:

Previous
From: "Abraham, Danny"
Date:
Subject: RE: Re: Reuse of REF Cursor
Next
From: Igor Korot
Date:
Subject: How can I insert the image as a blob in the table