From: Tom Lane <tgl@sss.pgh.pa.us>
To: depesz@depesz.com
Cc: PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: Logs vanish after partial log destination change
Date: Sun, 05 Sep 2021 10:24:35 -0400
Message-ID: <2872657.1630851875@sss.pgh.pa.us> (raw)
In-Reply-To: <20210905112832.GA8707@depesz.com>
References: <20210905112832.GA8707@depesz.com>
hubert depesz lubaczewski <depesz@depesz.com> writes:
> I start with:
> log_destination = 'syslog'
> logging_collector = false
> Logs to to syslog, all is well.
> Then, I chance log_destination to 'csvlog' and logging_collector to
> 'on'.
> And then I reload config.
> I know I can chance log_destination, but I can't change
> logging_collector. I assumed it means that logging will go to where they
> did before.
No. You effectively set log_destination to empty, since the csvlog
item is ignored if the logging collector isn't active. That's not
a case that we should disallow, IMO. I do not think there's anything
that we can do here that wouldn't make other use-cases worse.
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, depesz@depesz.com, pgsql-bugs@lists.postgresql.org
Subject: Re: Logs vanish after partial log destination change
In-Reply-To: <2872657.1630851875@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