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 1l0Etu-0003Uo-St for pgsql-admin@arkaria.postgresql.org; Fri, 15 Jan 2021 02:31:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l0Ets-0006uC-Q1 for pgsql-admin@arkaria.postgresql.org; Fri, 15 Jan 2021 02:31:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0Ets-0006u5-II for pgsql-admin@lists.postgresql.org; Fri, 15 Jan 2021 02:31:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l0Etp-0004M8-U6 for pgsql-admin@lists.postgresql.org; Fri, 15 Jan 2021 02:31:43 +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 10F2VeRf1623238; Thu, 14 Jan 2021 21:31:40 -0500 From: Tom Lane To: S Bob cc: pgsql-admin@lists.postgresql.org Subject: Re: Odd config issue, cannot set log_min_duration_statement In-reply-to: <2a31bc9d-5c9b-b76e-083d-c4fb392f0834@quadratum-braccas.com> References: <2a31bc9d-5c9b-b76e-083d-c4fb392f0834@quadratum-braccas.com> Comments: In-reply-to S Bob message dated "Thu, 14 Jan 2021 19:12:54 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1623236.1610677900.1@sss.pgh.pa.us> Date: Thu, 14 Jan 2021 21:31:40 -0500 Message-ID: <1623237.1610677900@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk S Bob writes: > I set: > log_min_duration_statement = 0 > and restarted the cluster but if I connect via psql and check it's still > disabled If you just did "SET" then it'd only affect the current session. > I tried an alter system, now if I cat the auto.conf file i see: > $ cat postgresql.auto.conf > # Do not edit this file manually! > # It will be overwritten by the ALTER SYSTEM command. > log_min_duration_statement = '0' Hmm, that should have worked. What do you see in select * from pg_settings where name = 'log_min_duration_statement'; (the "source..." columns are important here) regards, tom lane