pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Simplify IsIndexUsableForReplicaIdentityFull()
Date: Wed, 04 Dec 2024 07:41:33 +0000
Message-ID: <E1tIk0q-00127i-Tw@gemulon.postgresql.org> (raw)

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



Message-ID: <E1tIk0q-00127i-Tw@gemulon.postgresql.org>
Permalink:  ../E1tIk0q-00127i-Tw@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tIk0q-00127i-Tw@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: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Simplify IsIndexUsableForReplicaIdentityFull()
  In-Reply-To: <E1tIk0q-00127i-Tw@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