Improve comment in function GetPublicationRelations

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Improve comment in function GetPublicationRelations
Date: 2025-12-10 11:15:53
Message-ID: CANhcyEV3C_CGBeDtjvKjALDJDMH-Uuc9BWfSd=eck8SCXnE=fQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

While working on the thread [1], we found that the comment in the
function GetPublicationRelations is not correct. This function gets
the list of relations associated with the publication, but the comment
says the opposite :
/* Find all publications associated with the relation. */

Attached a patch to fix it.

[1]: https://www.postgresql.org/message-id/CANhcyEV_EVi5cgJ6WPvmeVAqjCS7Of%2BVAWuRHZtsVf8PQb_z7g%40mail.gmail.com

Thanks,
Shlok Kyal

Attachment Content-Type Size
v1-0001-Improve-comment-in-function-GetPublicationRelatio.patch application/octet-stream 1019 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Langote 2025-12-10 11:20:38 Re: pg_plan_advice
Previous Message Nitin Jadhav 2025-12-10 10:31:28 Re: Fix crash during recovery when redo segment is missing