postgres.git / summary / log / commit / refs
commit c868cbfef70a22bc02093cfd5e21d5ffd3ca5dd0
Author: Michael Paquier <michael@paquier.xyz>
Date: Wed Sep 20 01:02:12 2023 +0000
First released in: 17.0
Fix typos in pgoutput.c
RelationSyncCache was mentioned in two comments under a different name.
Issue noticed while reviewing a different patch touching the same area.
Introduced by 665d1fad99e7.
Discussion: https://postgr.es/m/ZQk1Ca_eFDTmBiZy@paquier.xyz
src/backend/replication/pgoutput/pgoutput.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/backend/replication/pgoutput/pgoutput.c b/src/backend/replication/pgoutput/pgoutput.c
index b08ca550417..3d2becb45cf 100644
--- a/src/backend/replication/pgoutput/pgoutput.c
+++ b/src/backend/replication/pgoutput/pgoutput.c
@@ -2262,8 +2262,8 @@ rel_sync_cache_relation_cb(Datum arg, Oid relid)
/*
* We can get here if the plugin was used in SQL interface as the
- * RelSchemaSyncCache is destroyed when the decoding finishes, but there
- * is no way to unregister the relcache invalidation callback.
+ * RelationSyncCache is destroyed when the decoding finishes, but there is
+ * no way to unregister the relcache invalidation callback.
*/
if (RelationSyncCache == NULL)
return;
@@ -2314,8 +2314,8 @@ rel_sync_cache_publication_cb(Datum arg, int cacheid, uint32 hashvalue)
/*
* We can get here if the plugin was used in SQL interface as the
- * RelSchemaSyncCache is destroyed when the decoding finishes, but there
- * is no way to unregister the invalidation callbacks.
+ * RelationSyncCache is destroyed when the decoding finishes, but there is
+ * no way to unregister the invalidation callbacks.
*/
if (RelationSyncCache == NULL)
return;
[parent: cb943054f3f6]