From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Ron <ronljohnsonjr@gmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: How to _not_ save startup options in postmaster.opts?
Date: Thu, 02 Nov 2023 13:42:37 -0400
Message-ID: <3134512.1698946957@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYQNs6okw-tnkfUjZvmTSDMhsM4W0BVk8+kMb9Dr83KyQ@mail.gmail.com>
References: <89ffab7a-0dfe-42e5-ae9d-e2fff60c9762@gmail.com>
<CAKFQuwYQNs6okw-tnkfUjZvmTSDMhsM4W0BVk8+kMb9Dr83KyQ@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
>> Alas, those config values are remembered in postmaster.opts. But I don't
>> want that.
> I don’t know where this file is even documented ATM but my understanding 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
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: How to _not_ save startup options in postmaster.opts?
In-Reply-To: <3134512.1698946957@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