Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Greg Sabino Mullane <htamfids@gmail.com>
Cc: David Barsky <me@davidbarsky.com>,
Dominique Devienne <ddevienne@gmail.com>,
Ron Johnson <ronljohnsonjr@gmail.com>,
"pgsql-generallists.postgresql.org"
<pgsql-general@lists.postgresql.org>
Date: 2025-10-16T22:22:07Z
Lists: pgsql-general
Greg Sabino Mullane <htamfids@gmail.com> writes: > 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. In particular, it's not terribly clear why the existing "smart" shutdown mode isn't sufficient. regards, tom lane