postgres.git / summary / log / commit / refs

commit    c476f380e296bab57fecada1ea96c86d575bf160
Author:   Amit Kapila <akapila@postgresql.org>
Date:     Fri Feb 18 02:14:24 2022 +0000
First released in: 15.0

    Fix a comment in worker.c.
    
    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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index d77bb32bb9e..5d9acc61733 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -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, [parent: 62cb7427d1e4]