From: Matthias Apitz <guru@unixarea.de>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: existing row not found by SELECT ... WHERE CTID = ?
Date: Wed, 25 May 2022 14:01:12 +0200
Message-ID: <20220525120112.GA17@sh4-5.1blu.de> (raw)
In-Reply-To: <de368023ce9d002ab169428175d27108f6c17cb6.camel@cybertec.at>
References: <YozvP4+Nl9gR+Jg1@c720-r368166>
<f13384d06765428071c47c143e0d5428f2d59d30.camel@cybertec.at>
<1652228.1653408709@sss.pgh.pa.us>
<Yo31JTTUm1S/R2k/@pureos>
<de368023ce9d002ab169428175d27108f6c17cb6.camel@cybertec.at>
El día Mittwoch, Mai 25, 2022 a las 12:51:02 +0200, Laurenz Albe escribió:
> On Wed, 2022-05-25 at 11:21 +0200, Matthias Apitz wrote:
> > Is it possible that the PostgreSQL 13.1 server does something by its own to invalidate the rowid?
>
> No. PostgreSQL may remove a dead row, but a dead row is by definition
> no longer visible, so it wouldn't be found by a query.
We will solve the problem now with setting the session after connect to
SET SESSION CHARACTERISTICS AS TRANSACTION ISOLATION LEVEL REPEATABLE READ;
(with an appropriate ESQL/C call). Any comments?
Thanks
matthias
--
Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
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, laurenz.albe@cybertec.at, tgl@sss.pgh.pa.us
Subject: Re: existing row not found by SELECT ... WHERE CTID = ?
In-Reply-To: <20220525120112.GA17@sh4-5.1blu.de>
References: <YozvP4+Nl9gR+Jg1@c720-r368166> <f13384d06765428071c47c143e0d5428f2d59d30.camel@cybertec.at> <1652228.1653408709@sss.pgh.pa.us> <Yo31JTTUm1S/R2k/@pureos> <de368023ce9d002ab169428175d27108f6c17cb6.camel@cybertec.at> <20220525120112.GA17@sh4-5.1blu.de>
* 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