public inbox for [email protected]  
help / color / mirror / Atom feed
From: Ron Johnson <[email protected]>
To: pgsql-generallists.postgresql.org <[email protected]>
Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Date: Fri, 17 Oct 2025 00:53:45 -0400
Message-ID: <CANzqJaAS_2XR=92GDdLA_ASDsQ+6_kz3Eju_5ESoiaDw3ZSokw@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAPR5_5psNqCm1OQr5LL4v6z02Sh=2YHYUg8NY+3xMzfGHfKs+w@mail.gmail.com>
	<[email protected]>
	<CAPR5_5q2oCkw19rHb7oy-M0M0purWFM5Jc8ub5xDy_NdhUmRTw@mail.gmail.com>
	<[email protected]>
	<[email protected]>
	<CAFCRh-94eXetAjtCURs5F0JZQr=kso0rVgVSEmWiSD7wA6VcMw@mail.gmail.com>
	<CANzqJaDn_mVi4M0CbKnVNwK9RxYOneoCRmd_d69rbjBrwasuPQ@mail.gmail.com>
	<CAFCRh--P93bF0gpkdvg4MzMNqq5gK=4eWFkmBDR0xw9dmFVAPQ@mail.gmail.com>
	<[email protected]>
	<CAFCRh--_14QR1_=vZvKVZkcA_1LRO-pQd2p6BBRMreyAv2_z6w@mail.gmail.com>
	<CAPR5_5rRYkM9bO=KC_PY-Bj2Fw=t+maEYG+Am-UgaCHRTWyFsg@mail.gmail.com>
	<CAKAnmm+PUsTvXyyV3iWRDSS9qW2F0SBVXjqg_ZmpwpCy0xM4XQ@mail.gmail.com>
	<[email protected]>

On Thu, Oct 16, 2025 at 6:22 PM Tom Lane <[email protected]> wrote:

> Greg Sabino Mullane <[email protected]> writes:
> > On Mon, Oct 13, 2025 at 3:19 PM David Barsky <[email protected]> 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.
>

I think OP is saying "we don't run the tests from a shell prompt, so can't
run pg_ctl stop".

I think he might be able to, though, by having his IDE run a PowerShell
command that runs "pg_ctl stop -wt9999", and also create an error trap that
also runs that PS command.

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


reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected]
  Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
  In-Reply-To: <CANzqJaAS_2XR=92GDdLA_ASDsQ+6_kz3Eju_5ESoiaDw3ZSokw@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox