Fix a comment in worker.c.
authorAmit Kapila <akapila@postgresql.org>
Fri, 18 Feb 2022 02:14:24 +0000 (07:44 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 18 Feb 2022 02:16:51 +0000 (07:46 +0530)
The comment incorrectly states that worker gets killed during
ALTER SUBSCRIPTION ... DISABLE. Remove that part of the comment.

Author: Masahiko Sawada
Discussion: https://postgr.es/m/CAD21AoCbEN==oH7BhP3U6WPHg3zgH6sDOeKhJjy4W2dx-qoVCw@mail.gmail.com

src/backend/replication/logical/worker.c

index d77bb32bb9e64e6f66825ac8f0374e8542d2aa51..5d9acc617334e5c8a291692a867785c2215e6fcf 100644 (file)
@@ -2933,10 +2933,7 @@ maybe_reread_subscription(void)
        proc_exit(0);
    }
 
-   /*
-    * Exit if the subscription was disabled. This normally should not happen
-    * as the worker gets killed during ALTER SUBSCRIPTION ... DISABLE.
-    */
+   /* Exit if the subscription was disabled. */
    if (!newsub->enabled)
    {
        ereport(LOG,