pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abraham, Danny <danny_abraham@bmc.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: Reuse of REF Cursor
Date: Sun, 11 Apr 2021 14:09:32 -0400
Message-ID: <2692336.1618164572@sss.pgh.pa.us> (raw)
In-Reply-To: <PH0PR02MB744680193CA50D6FDD04E0AE8E719@PH0PR02MB7446.namprd02.prod.outlook.com>
References: <PH0PR02MB74461F234A7AD20FA8FB70588E719@PH0PR02MB7446.namprd02.prod.outlook.com>
	<2671626.1618154631@sss.pgh.pa.us>
	<PH0PR02MB7446F3EBF0DF1B24212FC53F8E719@PH0PR02MB7446.namprd02.prod.outlook.com>
	<2691494.1618163401@sss.pgh.pa.us>
	<PH0PR02MB744680193CA50D6FDD04E0AE8E719@PH0PR02MB7446.namprd02.prod.outlook.com>

"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





view thread (9+ messages)  latest in thread

Message-ID: <2692336.1618164572@sss.pgh.pa.us>
Permalink:  ../2692336.1618164572@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2692336.1618164572@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, danny_abraham@bmc.com
  Subject: Re: Reuse of REF Cursor
  In-Reply-To: <2692336.1618164572@sss.pgh.pa.us>
  References: <PH0PR02MB74461F234A7AD20FA8FB70588E719@PH0PR02MB7446.namprd02.prod.outlook.com> <2671626.1618154631@sss.pgh.pa.us> <PH0PR02MB7446F3EBF0DF1B24212FC53F8E719@PH0PR02MB7446.namprd02.prod.outlook.com> <2691494.1618163401@sss.pgh.pa.us> <PH0PR02MB744680193CA50D6FDD04E0AE8E719@PH0PR02MB7446.namprd02.prod.outlook.com> <2692336.1618164572@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox