parameter log_connections can not be changed at session start

From: PG Doc comments form <noreply(at)postgresql(dot)org>
To: pgsql-docs(at)lists(dot)postgresql(dot)org
Cc: o15611(at)gmail(dot)com
Subject: parameter log_connections can not be changed at session start
Date: 2025-03-01 15:25:24
Message-ID: 174084272409.674.11017551444105641709@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/17/bug-reporting.html
Description:

Parameter: log_connections.
"Only superusers and users with the appropriate SET privilege can change
this parameter at session start, and it cannot be changed at all within a
session."
Parameter can not be changed at session start. May be it "may" be changed,
but without an any effect.
Testcase:
export PGOPTIONS="-c log_connections=on -c work_mem=5MB"
psql -h 127.0.0.1 -c "show work_mem;"
Then check the log, for example:
tail $PGDATA/log/postgresql-*

The same time, the similar parameter log_disconnections can be changed at
the session start as correctly descibed in documentation. This can be easily
checked by:
export PGOPTIONS="-c log_disconnections=on"

Browse pgsql-docs by date

  From Date Subject
Next Message PG Doc comments form 2025-03-02 09:27:13 pg_basebackup restore
Previous Message Euler Taveira 2025-02-28 12:36:28 Re: Regarding explanation to store and retrieve postgres geometric features