Thread: pgsql: Simplify IsIndexUsableForReplicaIdentityFull()

pgsql: Simplify IsIndexUsableForReplicaIdentityFull()

From
Peter Eisentraut
Date:
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(-)