pgsql: Pass down information on table modification to scan nodes - Mailing list pgsql-committers

From Melanie Plageman
Subject pgsql: Pass down information on table modification to scan nodes
Date
Msg-id E1w7GRR-002BFI-07@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Pass down information on table modification to scan nodes

Pass down information to sequential scan, index [only] scan, bitmap
table scan, sample scan, and TID range scan nodes on whether or not the
query modifies the relation being scanned. A later commit will use this
information to update the VM during on-access pruning only if the
relation is not modified by the query.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Andrey Borodin <x4mmm@yandex-team.ru>
Reviewed-by: Tomas Vondra <tomas@vondra.me>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/4379FDA3-9446-4E2C-9C15-32EFE8D4F31B%40yandex-team.ru

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/50eb5faea2959125a575bae0a062ccb33b49c43d

Modified Files
--------------
src/backend/executor/execUtils.c          | 21 +++++++++++++++++++++
src/backend/executor/nodeBitmapHeapscan.c |  3 ++-
src/backend/executor/nodeIndexonlyscan.c  |  9 ++++++---
src/backend/executor/nodeIndexscan.c      | 12 ++++++++----
src/backend/executor/nodeSamplescan.c     |  3 ++-
src/backend/executor/nodeSeqscan.c        | 10 +++++++---
src/backend/executor/nodeTidrangescan.c   | 11 ++++++++---
src/include/access/tableam.h              |  3 +++
src/include/executor/executor.h           |  2 ++
9 files changed, 59 insertions(+), 15 deletions(-)


pgsql-committers by date:

Previous
From: Álvaro Herrera
Date:
Subject: pgsql: Don't use bits32 in table AM interface
Next
From: Heikki Linnakangas
Date:
Subject: pgsql: Replace getopt() with our re-entrant variant in the backend