pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthias Apitz <guru@unixarea.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: David G. Johnston <david.g.johnston@gmail.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: existing row not found by SELECT ... WHERE CTID = ?
Date: Fri, 27 May 2022 18:36:36 +0200
Message-ID: <YpD+FKxH1CdP7sGZ@pureos> (raw)
In-Reply-To: <2305902.1653580955@sss.pgh.pa.us>
References: <YozvP4+Nl9gR+Jg1@c720-r368166>
	<f13384d06765428071c47c143e0d5428f2d59d30.camel@cybertec.at>
	<1652228.1653408709@sss.pgh.pa.us>
	<Yo31JTTUm1S/R2k/@pureos>
	<Yo+Y7E3r29d8tDu1@pureos>
	<CAKFQuwbrHi0ndyCfuSZLto9saOBw-Rd=EdtufCOD=0_3iiZy2A@mail.gmail.com>
	<2305902.1653580955@sss.pgh.pa.us>

El día jueves, mayo 26, 2022 a las 12:02:35 -0400, Tom Lane escribió:

> I wonder though if the
> OP should be considering using SELECT FOR UPDATE in his cursor,
> so that it'd automatically chain up to the newest row version.

I diged into this but the CURSOR are all declared WITH HOLD and this
conflicts with FOR UPDATE. And this is not easy to change in our generic
generated DB-layer for all the ~400 tables.

	matthias

-- 
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub





view thread (18+ messages)  latest in thread

Message-ID: <YpD+FKxH1CdP7sGZ@pureos>
Permalink:  ../YpD+FKxH1CdP7sGZ@pureos/
Also on:    postgresql.org/message-id/YpD+FKxH1CdP7sGZ@pureos

 · 

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: guru@unixarea.de, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, laurenz.albe@cybertec.at
  Subject: Re: existing row not found by SELECT ... WHERE CTID = ?
  In-Reply-To: <YpD+FKxH1CdP7sGZ@pureos>
  References: <YozvP4+Nl9gR+Jg1@c720-r368166> <f13384d06765428071c47c143e0d5428f2d59d30.camel@cybertec.at> <1652228.1653408709@sss.pgh.pa.us> <Yo31JTTUm1S/R2k/@pureos> <Yo+Y7E3r29d8tDu1@pureos> <CAKFQuwbrHi0ndyCfuSZLto9saOBw-Rd=EdtufCOD=0_3iiZy2A@mail.gmail.com> <2305902.1653580955@sss.pgh.pa.us> <YpD+FKxH1CdP7sGZ@pureos>

* 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