Fix comment in GetPublicationRelations
authorHeikki Linnakangas <[email protected]>
Wed, 10 Dec 2025 13:33:29 +0000 (15:33 +0200)
committerHeikki Linnakangas <[email protected]>
Wed, 10 Dec 2025 13:33:29 +0000 (15:33 +0200)
This function gets the list of relations associated with the
publication but the comment said the opposite.

Author: Shlok Kyal <[email protected]>
Discussion: https://www.postgresql.org/message-id/CANhcyEV3C_CGBeDtjvKjALDJDMH-Uuc9BWfSd=eck8SCXnE=fQ@mail.gmail.com

src/backend/catalog/pg_publication.c

index be5ef5e4c0e07be770505d49e1d86e9f993754fc..7aa3f179924055b0090e2a10dbb5763f5de89b8a 100644 (file)
@@ -788,7 +788,7 @@ GetPublicationRelations(Oid pubid, PublicationPartOpt pub_partopt)
        SysScanDesc scan;
        HeapTuple       tup;
 
-       /* Find all publications associated with the relation. */
+       /* Find all relations associated with the publication. */
        pubrelsrel = table_open(PublicationRelRelationId, AccessShareLock);
 
        ScanKeyInit(&scankey,