Re: Option on `postgres` CLI to shutdown when there are no more active connections?

Greg Sabino Mullane <htamfids@gmail.com>

From: Greg Sabino Mullane <htamfids@gmail.com>
To: David Barsky <me@davidbarsky.com>
Cc: Dominique Devienne <ddevienne@gmail.com>, Ron Johnson <ronljohnsonjr@gmail.com>, "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>, Tom Lane <tgl@sss.pgh.pa.us>
Date: 2025-10-16T22:18:57Z
Lists: pgsql-general
On Mon, Oct 13, 2025 at 3:19 PM David Barsky <me@davidbarsky.com> wrote:

> 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?
>

I don't know about opposition, per se, but the onus is on you to provide a
strong use case not already covered by existing tools. I don't think that
bar has been met yet.

--
Cheers,
Greg

--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support