pgsql: Simplify IsIndexUsableForReplicaIdentityFull()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify IsIndexUsableForReplicaIdentityFull()
Date: 2024-12-04 07:41:33
Message-ID: E1tIk0q-00127i-Tw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Simplify IsIndexUsableForReplicaIdentityFull()

Take Relation as argument instead of IndexInfo. Building the
IndexInfo is an unnecessary intermediate step here.

A future patch wants to get some information that is in the relcache
but not in IndexInfo, so this will also help there.

Discussion: https://www.postgresql.org/message-id/333d3886-b737-45c3-93f4-594c96bb405d@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/7727049e8f663344d4d0457e1d9ec048d626f3d9

Modified Files
--------------
src/backend/replication/logical/relation.c | 16 +++++++---------
src/backend/replication/logical/worker.c | 2 +-
src/include/replication/logicalrelation.h | 2 +-
3 files changed, 9 insertions(+), 11 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message John Naylor 2024-12-04 10:12:33 pgsql: Fix use-after-free in parallel_vacuum_reset_dead_items
Previous Message Amit Kapila 2024-12-04 04:27:48 pgsql: Ensure stored generated columns must be published when required.