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

From Tom Lane
Subject Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Date
Msg-id 1570124.1760653327@sss.pgh.pa.us
Whole thread Raw
In response to Re: Option on `postgres` CLI to shutdown when there are no more active connections?  (Greg Sabino Mullane <htamfids@gmail.com>)
Responses Re: Option on `postgres` CLI to shutdown when there are no more active connections?
List 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



pgsql-general by date:

Previous
From: Greg Sabino Mullane
Date:
Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Next
From: Ron Johnson
Date:
Subject: Re: Enquiry about TDE with PgSQL