Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qybiM-009YDI-UK for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2023 17:42:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qybiL-00EXJJ-Ay for pgsql-admin@arkaria.postgresql.org; Thu, 02 Nov 2023 17:42:41 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qybiK-00EXJA-Rl for pgsql-admin@lists.postgresql.org; Thu, 02 Nov 2023 17:42:40 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qybiI-003dgV-DJ for pgsql-admin@lists.postgresql.org; Thu, 02 Nov 2023 17:42:39 +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 3A2Hgbbu3134513; Thu, 2 Nov 2023 13:42:37 -0400 From: Tom Lane To: "David G. Johnston" cc: Ron , Pgsql-admin Subject: Re: How to _not_ save startup options in postmaster.opts? In-reply-to: References: <89ffab7a-0dfe-42e5-ae9d-e2fff60c9762@gmail.com> Comments: In-reply-to "David G. Johnston" message dated "Thu, 02 Nov 2023 10:24:00 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <3134511.1698946957.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Nov 2023 13:42:37 -0400 Message-ID: <3134512.1698946957@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: >> Alas, those config values are remembered in postmaster.opts. But I don= 't >> want that. > I don=E2=80=99t know where this file is even documented ATM but my under= standing is > it just shows you the values used during the last startup. It does more, per the pg_ctl man page: postmaster.opts If this file exists in the data directory, pg_ctl (in restart mode) will pass the contents of the file as options to postgres, unless overridden by the -o option. The contents of this file are also displayed in status mode. It seems totally reasonable for "pg_ctl restart" to re-apply those switches. If you don't want that, don't use "restart", but stop and start. Or you could just remove the file. regards, tom lane