pgsql: Simplify IsIndexUsableForReplicaIdentityFull() - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Simplify IsIndexUsableForReplicaIdentityFull()
Date
Msg-id E1tIk0q-00127i-Tw@gemulon.postgresql.org
Whole thread Raw
List 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(-)


pgsql-committers by date:

Previous
From: Amit Kapila
Date:
Subject: pgsql: Ensure stored generated columns must be published when required.
Next
From: John Naylor
Date:
Subject: pgsql: Fix use-after-free in parallel_vacuum_reset_dead_items