Re: BUG #17538: Dynamically updating log_hostname not affect the disconnection log

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: teng_wang13(at)163(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #17538: Dynamically updating log_hostname not affect the disconnection log
Date: 2022-07-04 17:23:41
Message-ID: 1596953.1656955421@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> The parameter could be updated on the fly. However, dynamically updating
> log_hostname did not affect the disconnection log.

This is operating as designed: the host name is captured at connection
time, and the log_disconnection message just repeats it. What you
propose would not be an improvement, because it'd make it impossible
to match up log_disconnections messages with log_connections ones.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2022-07-05 00:12:03 Re: BUG #17504: psql --single-transaction -vON_ERROR_STOP=1 still commits after client-side error
Previous Message Christoph Berg 2022-07-04 14:38:26 Re: BUG #17504: psql --single-transaction -vON_ERROR_STOP=1 still commits after client-side error