Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Ron Johnson <ronljohnsonjr@gmail.com>
From: Ron Johnson <ronljohnsonjr@gmail.com>
To: "pgsql-generallists.postgresql.org" <pgsql-general@lists.postgresql.org>
Date: 2025-10-13T20:27:17Z
Lists: pgsql-general
On Mon, Oct 13, 2025 at 3:19 PM David Barsky <me@davidbarsky.com> wrote: [snip] > 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? E.g., something similar to > SQL > Server's `auto_close` in the vein of `postgres > -c "auto_close_after=100"` or `pg-ctl start --exit-mode=smart`? > If testing is all scripted, then why not put "pg_ctl stop" at the end of the script? -- Death to <Redacted>, and butter sauce. Don't boil me, I'm still alive. <Redacted> lobster!