Re: Option on `postgres` CLI to shutdown when there are no more active connections? - Mailing list pgsql-general

From Ron Johnson
Subject Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Date
Msg-id CANzqJaBepwWOdD3dOJPMx8KdHaA3xMk8NA9ST5oCK2HUoyqvig@mail.gmail.com
Whole thread Raw
In response to Re: Option on `postgres` CLI to shutdown when there are no more active connections?  (David Barsky <me@davidbarsky.com>)
Responses Re: Option on `postgres` CLI to shutdown when there are no more active connections?
List pgsql-general
On Mon, Oct 13, 2025 at 3:19 PM David Barsky <me@davidbarsky.com> wrote:
[snip] 
Anyways, I'll try to get at what motivated this whole discussion: would there be
community opposition to adding a CLI flag that'd exit/shutdown all Postgres
processes once all pending connections close? E.g., something similar to SQL
Server's `auto_close` in the vein of `postgres
-c "auto_close_after=100"` or `pg-ctl start --exit-mode=smart`?

If testing is all scripted, then why not put "pg_ctl stop" at the end of the script?

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

pgsql-general by date:

Previous
From: John McKown
Date:
Subject: Re: Database in another drive
Next
From: Tim Gerber
Date:
Subject: Re: Database in another drive