From 2e3a23f790a7e94832058644455d4985a4b9d02d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=81lvaro=20Herrera?= <alvherre@kurilemu.de>
Date: Sat, 28 Nov 2026 16:05:30 +0100
Subject: [PATCH] fixups

---
 doc/src/sgml/logicaldecoding.sgml           | 6 +++---
 src/backend/commands/repack.c               | 2 +-
 src/backend/replication/pgrepack/pgrepack.c | 4 ++--
 src/include/replication/output_plugin.h     | 6 +++---
 4 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/doc/src/sgml/logicaldecoding.sgml b/doc/src/sgml/logicaldecoding.sgml
index 48a77ec5535..12697b9e288 100644
--- a/doc/src/sgml/logicaldecoding.sgml
+++ b/doc/src/sgml/logicaldecoding.sgml
@@ -808,7 +808,7 @@ typedef struct OutputPluginCallbacks
     LogicalDecodeCommitCB commit_cb;
     LogicalDecodeMessageCB message_cb;
     LogicalDecodeFilterByOriginCB filter_by_origin_cb;
-    LogicalDecodeFilterByRelFileLocator filter_by_rlocator_cb;
+    LogicalDecodeFilterByRelFileLocatorCB filter_by_rlocator_cb;
     LogicalDecodeShutdownCB shutdown_cb;
     LogicalDecodeFilterPrepareCB filter_prepare_cb;
     LogicalDecodeBeginPrepareCB begin_prepare_cb;
@@ -1130,8 +1130,8 @@ typedef bool (*LogicalDecodeFilterByOriginCB) (struct LogicalDecodingContext *ct
        locator (filenode) equals to <parameter>rlocator</parameter> is of
        interest to the output plugin.
 <programlisting>
-typedef bool (*LogicalDecodeFilterByRelFileLocator) (struct LogicalDecodingContext *ctx,
-                                                     RelFileLocator rlocator);
+typedef bool (*LogicalDecodeFilterByRelFileLocatorCB) (struct LogicalDecodingContext *ctx,
+                                                       RelFileLocator rlocator);
 </programlisting>
       The <parameter>ctx</parameter> parameter has the same contents as for
       the other callbacks. No information but the file locator is available.
diff --git a/src/backend/commands/repack.c b/src/backend/commands/repack.c
index eee8b646029..c4f6a77dfb3 100644
--- a/src/backend/commands/repack.c
+++ b/src/backend/commands/repack.c
@@ -542,7 +542,7 @@ cluster_rel(RepackCommand cmd, Relation OldHeap, Oid indexOid,
 	 * possible for the toast relfilenode to change (e.g. because VACUUM FULL
 	 * or REPACK is run on it).  This would break concurrent repack's system
 	 * for skipping decoding changes in other tables -- see
-	 * change_useless_for_repack().
+	 * repack_filter_by_rlocator().
 	 */
 	if (concurrent && OidIsValid(OldHeap->rd_rel->reltoastrelid))
 		LockRelationOid(OldHeap->rd_rel->reltoastrelid, lmode);
diff --git a/src/backend/replication/pgrepack/pgrepack.c b/src/backend/replication/pgrepack/pgrepack.c
index c8f6e064eaa..ed7e80e41aa 100644
--- a/src/backend/replication/pgrepack/pgrepack.c
+++ b/src/backend/replication/pgrepack/pgrepack.c
@@ -330,8 +330,8 @@ repack_store_change(LogicalDecodingContext *ctx, Relation relation,
  * rlocator-based filter callback for REPACK (CONCURRENTLY)
  *
  * If the given RelFileLocator matches one of the locators being processed by
- * REPACK, return true to have this record be skipped by decoding.  Otherwise
- * return false.
+ * REPACK, return false to have this record be skipped by decoding.  Otherwise
+ * return true.
  */
 static bool
 repack_filter_by_rlocator(struct LogicalDecodingContext *ctx,
diff --git a/src/include/replication/output_plugin.h b/src/include/replication/output_plugin.h
index e0594f6361b..fee0dbca38e 100644
--- a/src/include/replication/output_plugin.h
+++ b/src/include/replication/output_plugin.h
@@ -103,8 +103,8 @@ typedef bool (*LogicalDecodeFilterByOriginCB) (struct LogicalDecodingContext *ct
 /*
  * Filter changes by relation file locator.
  */
-typedef bool (*LogicalDecodeFilterByRelFileLocator) (struct LogicalDecodingContext *ctx,
-													 RelFileLocator rlocator);
+typedef bool (*LogicalDecodeFilterByRelFileLocatorCB) (struct LogicalDecodingContext *ctx,
+													   RelFileLocator rlocator);
 
 /*
  * Called to shutdown an output plugin.
@@ -234,7 +234,7 @@ typedef struct OutputPluginCallbacks
 	LogicalDecodeCommitCB commit_cb;
 	LogicalDecodeMessageCB message_cb;
 	LogicalDecodeFilterByOriginCB filter_by_origin_cb;
-	LogicalDecodeFilterByRelFileLocator filter_by_rlocator_cb;
+	LogicalDecodeFilterByRelFileLocatorCB filter_by_rlocator_cb;
 	LogicalDecodeShutdownCB shutdown_cb;
 
 	/* streaming of changes at prepare time */
-- 
2.47.3

