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"