Re: How to _not_ save startup options in postmaster.opts? - Mailing list pgsql-admin

From Ron
Subject Re: How to _not_ save startup options in postmaster.opts?
Date
Msg-id 16b8d553-b18c-40ee-8cbc-7eed208c1474@gmail.com
Whole thread Raw
In response to Re: How to _not_ save startup options in postmaster.opts?  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-admin
On 11/2/23 12:24, David G. Johnston wrote:

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 doesn’t remember anything in any real sense because it isn’t used by the system to determine what those parameter values should be during startup.

https://pgpedia.info/p/postmaster.opts.html

"postmaster.opts is a file in the data directory written after startup which contains the options used to start the postmaster process. The contents of postmaster.opts are used to ensure the postmaster process can be restarted with the same options with which it was originally started."

I've confirmed this behavior, which I why I wrote the email.


Use the -c functionality for your manual maintenance boots and just let the normal startup mechanism do whatever it does when you re-engage it.

David J.


--
Born in Arizona, moved to Babylonia.

pgsql-admin by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to _not_ save startup options in postmaster.opts?
Next
From: Ron
Date:
Subject: Re: How to _not_ save startup options in postmaster.opts?