Simplify IsIndexUsableForReplicaIdentityFull()
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 4 Dec 2024 07:33:28 +0000 (08:33 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 4 Dec 2024 07:33:28 +0000 (08:33 +0100)
commit7727049e8f663344d4d0457e1d9ec048d626f3d9
treeae0ec22552d7c17809ed5a6efe0b677b14d33518
parent87ce27de6963091f4a365f80bcdb06b9da098f00
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
src/backend/replication/logical/relation.c
src/backend/replication/logical/worker.c
src/include/replication/logicalrelation.h