Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMt4d-0004DV-5K for pgsql-bugs@arkaria.postgresql.org; Sun, 05 Sep 2021 14:24:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mMt4b-0005Km-9n for pgsql-bugs@arkaria.postgresql.org; Sun, 05 Sep 2021 14:24:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMt4b-0005Ke-3K for pgsql-bugs@lists.postgresql.org; Sun, 05 Sep 2021 14:24:41 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMt4Y-0008CQ-JG for pgsql-bugs@lists.postgresql.org; Sun, 05 Sep 2021 14:24:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 185EOZdZ2872658; Sun, 5 Sep 2021 10:24:35 -0400 From: Tom Lane To: depesz@depesz.com cc: PostgreSQL mailing lists Subject: Re: Logs vanish after partial log destination change In-reply-to: <20210905112832.GA8707@depesz.com> References: <20210905112832.GA8707@depesz.com> Comments: In-reply-to hubert depesz lubaczewski message dated "Sun, 05 Sep 2021 13:28:33 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2872656.1630851875.1@sss.pgh.pa.us> Date: Sun, 05 Sep 2021 10:24:35 -0400 Message-ID: <2872657.1630851875@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk hubert depesz lubaczewski 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