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

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Date: 2025-10-12 03:38:25
Message-ID: CANzqJaCPy0shWp63WcCAA3-whNE0ws8qag+teDetOf9bOKrdkA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, Oct 11, 2025 at 11:21 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
wrote:

> On 10/11/25 19:56, Ron Johnson wrote:
> > On Sat, Oct 11, 2025 at 7:11 PM Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com
> > <mailto:adrian(dot)klaver(at)aklaver(dot)com>> wrote:
> >
>
> > I think OP is looking for AUTO_CLOSE, like SQL Server (and Rdb/VMS
> > before it). Its only real utility is OP's use-case: a Windows
> > desktop running local testing.
>
> From the original post:
>
> "Is there any interest in adding a command line option to the `postgres`
> CLI"
>
> Which I took to mean:
>
> https://www.postgresql.org/docs/current/app-postgres.html

Yeah. Something like this, which we don't have:
postgres -c "auto_close=on"

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Barsky 2025-10-12 22:10:24 Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Previous Message Adrian Klaver 2025-10-12 03:21:06 Re: Option on `postgres` CLI to shutdown when there are no more active connections?