Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntphX-0002bg-Au for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 12:01:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ntphW-0008Mx-6q for pgsql-general@arkaria.postgresql.org; Wed, 25 May 2022 12:01:18 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntphV-0008Mo-S3 for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 12:01:17 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ntphT-0003PB-G2 for pgsql-general@lists.postgresql.org; Wed, 25 May 2022 12:01:17 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.90_1) (envelope-from ) id 1ntphQ-0004Sq-5h; Wed, 25 May 2022 14:01:12 +0200 Received: from localhost ([127.0.0.1]) by sh4-5.1blu.de with esmtp (Exim 4.90_1) (envelope-from ) id 1ntphQ-0004eU-2s; Wed, 25 May 2022 14:01:12 +0200 Date: Wed, 25 May 2022 14:01:12 +0200 From: Matthias Apitz To: Laurenz Albe Cc: Tom Lane , pgsql-general@lists.postgresql.org Subject: Re: existing row not found by SELECT ... WHERE CTID = ? Message-ID: <20220525120112.GA17@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <1652228.1653408709@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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