From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: tableam: Add and use table_fetch_row_version().
Date: Mon, 25 Mar 2019 07:20:55 +0000
Message-ID: <E1h8Juh-000801-OZ@gemulon.postgresql.org> (raw)
tableam: Add and use table_fetch_row_version().
This is essentially the tableam version of heapam_fetch(),
i.e. fetching a tuple identified by a tid, performing visibility
checks.
Note that this different from table_index_fetch_tuple(), which is for
index lookups. It therefore has to handle a tid pointing to an earlier
version of a tuple if the AM uses an optimization like heap's HOT. Add
comments to that end.
This commit removes the stats_relation argument from heap_fetch, as
it's been unused for a long time.
Author: Andres Freund
Reviewed-By: Haribabu Kommi
Discussion: https://postgr.es/m/20180703070645.wchpu5muyto5n647@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9a8ee1dc650be623c32b1df103254847be974d01
Modified Files
--------------
src/backend/access/heap/heapam.c | 9 +----
src/backend/access/heap/heapam_handler.c | 27 ++++++++++++-
src/backend/access/table/tableamapi.c | 1 +
src/backend/commands/trigger.c | 69 ++++++--------------------------
src/backend/executor/execMain.c | 13 ++----
src/backend/executor/nodeModifyTable.c | 22 ++--------
src/backend/executor/nodeTidscan.c | 16 ++------
src/include/access/heapam.h | 2 +-
src/include/access/tableam.h | 43 ++++++++++++++++++--
9 files changed, 91 insertions(+), 111 deletions(-)
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-committers@postgresql.org
Cc: andres@anarazel.de
Subject: Re: pgsql: tableam: Add and use table_fetch_row_version().
In-Reply-To: <E1h8Juh-000801-OZ@gemulon.postgresql.org>
References: <E1h8Juh-000801-OZ@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