From: | Alexander Korotkov <akorotkov(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Add TupleTableSlotOps.is_current_xact_tuple() method |
Date: | 2024-03-21 21:01:18 |
Message-ID: | E1rnPXK-004zQW-FT@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2024-03-21 22:28:04 | pgsql: Add hash support functions and hash opclass for contrib/ltree. |
Previous Message | Robert Haas | 2024-03-21 17:09:15 | pgsql: docs: Make claims about the benefits of HOT updates more precise |