From: Tom Lane <tgl@sss.pgh.pa.us>
To: teng_wang13@163.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17538: Dynamically updating log_hostname not affect the disconnection log
Date: Mon, 04 Jul 2022 13:23:41 -0400
Message-ID: <1596953.1656955421@sss.pgh.pa.us> (raw)
In-Reply-To: <17538-74a88f3ab5b55670@postgresql.org>
References: <17538-74a88f3ab5b55670@postgresql.org>
PG Bug reporting form <noreply@postgresql.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, teng_wang13@163.com, pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17538: Dynamically updating log_hostname not affect the disconnection log
In-Reply-To: <1596953.1656955421@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox