Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9WMR-001rWv-59 for pgsql-general@arkaria.postgresql.org; Thu, 16 Oct 2025 22:22:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1v9WMP-00G18L-55 for pgsql-general@arkaria.postgresql.org; Thu, 16 Oct 2025 22:22:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v9WMO-00G184-Qk for pgsql-general@lists.postgresql.org; Thu, 16 Oct 2025 22:22:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1v9WML-002bXn-1r for pgsql-general@lists.postgresql.org; Thu, 16 Oct 2025 22:22:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 59GMM75P1570125; Thu, 16 Oct 2025 18:22:07 -0400 From: Tom Lane To: Greg Sabino Mullane cc: David Barsky , Dominique Devienne , Ron Johnson , "pgsql-generallists.postgresql.org" Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections? In-reply-to: References: <73ff46d2-0bad-4a8d-9928-e494c2d5b0d1@gmail.com> <93702.1760321769@sss.pgh.pa.us> <233155.1760369829@sss.pgh.pa.us> Comments: In-reply-to Greg Sabino Mullane message dated "Thu, 16 Oct 2025 18:18:57 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1570123.1760653327.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Thu, 16 Oct 2025 18:22:07 -0400 Message-ID: <1570124.1760653327@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Greg Sabino Mullane writes: > On Mon, Oct 13, 2025 at 3:19 PM David Barsky 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