pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Reuse of REF Cursor
Date: Mon, 12 Apr 2021 14:07:51 -0500
Message-ID: <b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.com> (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>

On 4/11/21 1:02 PM, Abraham, Danny wrote:
> 2021-04-09 08:00:08.692 IDTERROR:  canceling statement due to statement timeout
> 2021-04-09 08:00:08.692 IDTCONTEXT:  PL/pgSQL function orhpans_active_clean_table(character varying,integer) line 42 at FETCH
>          PL/pgSQL function orhpans_active_removal() line 31 at assignment
>          PL/pgSQL function ajf_backup(integer) line 39 at assignment
>
> Can a FETCH fail if the table is locked? The FETCH is stuck for the <statement_timeout> time.
>
> Should I  lock all tables involved with the query?
>
> Any specific time-out on the fetch? Or should I use the general statement-timeout?
>
> I mean move from regular programming mode to paranoidic mode....
>
> The failure is inconsistent.. Never fails in PG 11.5, but fails in PG9.5.5 about once a week...
>
> I need a full understanding of the problem in order to force big,slow customers to migrate to PG11.5.

9.5.21 would be an important step.  Heck, it might solve the problem.

-- 
Angular momentum makes the world go 'round.





view thread (9+ messages)

Message-ID: <b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.com>
Permalink:  ../b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.com/
Also on:    postgresql.org/message-id/b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.com

 · 

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: ronljohnsonjr@gmail.com
  Subject: Re: Reuse of REF Cursor
  In-Reply-To: <b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.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> <b5a0386a-2318-8e11-1ce6-5186e63f7dd2@gmail.com>

* 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