Re: Is NEW.ctid usable as table_tuple_satisfies_snapshot? - Mailing list pgsql-hackers

From Kaiting Chen
Subject Re: Is NEW.ctid usable as table_tuple_satisfies_snapshot?
Date
Msg-id CA+CLzG-NLPv-6LkpZybXHnGt_U6w75DgAJ_8v7g_UOWrYQfqxw@mail.gmail.com
Whole thread Raw
In response to Re: Is NEW.ctid usable as table_tuple_satisfies_snapshot?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Fri, May 26, 2023 at 12:49 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Just to clarify, there's no way for SELECT FROM foo WHERE ctid = NEW.ctid
> to return a row that ordinary wouldn't be visible right? There's no magic
> going on with the qual on ctid that skips a visibility check right?

No, a ctid test isn't magic in that way; nodeTidscan.c applies the
same snapshot check as any other relation scan.

Okay thanks!

pgsql-hackers by date:

Previous
From: Jeff Davis
Date:
Subject: Re: pg_collation.collversion for C.UTF-8
Next
From: Jeff Davis
Date:
Subject: Re: Order changes in PG16 since ICU introduction