pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Melanie Plageman <melanieplageman@gmail.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Pass down information on table modification to scan nodes
Date: Mon, 30 Mar 2026 17:30:21 +0000
Message-ID: <E1w7GRR-002BFI-07@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1w7GRR-002BFI-07@gemulon.postgresql.org>
Permalink:  ../E1w7GRR-002BFI-07@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1w7GRR-002BFI-07@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: melanieplageman@gmail.com, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Pass down information on table modification to scan nodes
  In-Reply-To: <E1w7GRR-002BFI-07@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