pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add TupleTableSlotOps.is_current_xact_tuple() method
Date: Thu, 21 Mar 2024 21:01:18 +0000
Message-ID: <E1rnPXK-004zQW-FT@gemulon.postgresql.org> (raw)

Add TupleTableSlotOps.is_current_xact_tuple() method

This allows us to abstract how/whether table AM uses transaction identifiers.
A custom table AM can use a custom slot, which may not store xmin directly,
but determine the tuple belonging to the current transaction in the other way.

Discussion: https://postgr.es/m/CAPpHfdurb9ycV8udYqM%3Do0sPS66PJ4RCBM1g-bBpvzUfogY0EA%40mail.gmail.com
Reviewed-by: Matthias van de Meent, Mark Dilger, Pavel Borisov
Reviewed-by: Nikita Malakhov, Japin Li

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/0997e0af273d80add75bcf5616eee000d0a78397

Modified Files
--------------
src/backend/executor/execTuples.c   | 79 +++++++++++++++++++++++++++++++++++++
src/backend/utils/adt/ri_triggers.c |  8 +---
src/include/executor/tuptable.h     | 21 ++++++++++
3 files changed, 101 insertions(+), 7 deletions(-)



view thread (9+ messages)

Message-ID: <E1rnPXK-004zQW-FT@gemulon.postgresql.org>
Permalink:  ../E1rnPXK-004zQW-FT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1rnPXK-004zQW-FT@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: akorotkov@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add TupleTableSlotOps.is_current_xact_tuple() method
  In-Reply-To: <E1rnPXK-004zQW-FT@gemulon.postgresql.org>

* 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