postgres.git / summary / log / commit / refs

commit    a961b102cd96be2b8f1bad385607e8e7d9deb774
Author:   Jeff Davis <jdavis@postgresql.org>
Date:     Mon Aug 03 18:34:58 2026 +0000
First released in: 14.24, 15.19, 16.15, 17.11, 18.6

    Do not log subscription conninfo.
    
    Logging connection information, even at DEBUG1, creates unnecessary
    risks. Remove the entire log message because it had no other useful
    content.
    
    Addresses finding 14 in report from linked discussion.
    
    Reported-by: Noah Misch <noah@leadboat.com>
    Discussion: https://postgr.es/m/20260710195902.4f.noahmisch@microsoft.com
    Backpatch-through: 14


src/backend/replication/logical/worker.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index 4502c5794a7..7413c39b4f1 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -4746,10 +4746,6 @@ SetupApplyOrSyncWorker(int worker_slot) InitializeLogRepWorker(); - /* Connect to the origin and start the replication. */ - elog(DEBUG1, "connecting to publisher using connection string \"%s\"", - MySubscription->conninfo); - /* * Setup callback for syscache so that we know when something changes in * the subscription relation state. [parent: 634a8dcb8f64]