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 1v7me4-007kS9-PA for pgsql-general@arkaria.postgresql.org; Sun, 12 Oct 2025 03:21:16 +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 1v7me2-000Dii-JW for pgsql-general@arkaria.postgresql.org; Sun, 12 Oct 2025 03:21:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1v7me1-000DiZ-L6 for pgsql-general@lists.postgresql.org; Sun, 12 Oct 2025 03:21:15 +0000 Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by makus.postgresql.org with smtp (Exim 4.96) (envelope-from ) id 1v7mdx-001I8g-2G for pgsql-general@postgresql.org; Sun, 12 Oct 2025 03:21:13 +0000 Received: from phl-compute-09.internal (phl-compute-09.internal [10.202.2.49]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6AD6C7A00F5; Sat, 11 Oct 2025 23:21:08 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Sat, 11 Oct 2025 23:21:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1760239268; x=1760325668; bh=az5xL6t3UEmE9p3ty2kCHq8dh/3SnsxoyvNKZB8sGTA=; b= EZM4mFhCl0ZoWSR2xuBAEUB+n53hRMsK0a934niZ0pxQLAZgjCX/4LimP9m9glhY 8JimFTmZWPB5NtMLrGqZcv8aAcxKCNVWJU7d06sS641TDn0+4/ATknXupikl8FB5 QwpavKGmL8QcNdnn5YSAFQwiysiHzk5Fry+bNWHKpEjtDOme7ikM1bdv7dTAFVuE QyGwv8bg9k3KsraS6wTQOzSMphgZN8NhDCmukLAC5wvuFX9ggXKNGn/luAYc0+2j dhm7QyVtgMUq2/+/XdF+dBGPvOMPLQHM3HFler2O5nK9g+a+dE40zsgEnqB0ubj1 ZTNjSx3+VAnVEwZYbvC42Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1760239268; x=1760325668; bh=a z5xL6t3UEmE9p3ty2kCHq8dh/3SnsxoyvNKZB8sGTA=; b=S6FjM4VpZ6+CRlVRA UKPYCsqiCrA38w2OjLYUV4oVtxRMfLXbTW5+xLLPiMJqy9ymouAKMA/UhVGv3AFh 8ls+aFUOc/31wNDlms8fq5aocutw9HL0oR+gzjwq2xWqVImdcjIII7f8xjSaFbYM hmH/fLGC0KJYj2dJlEBwXXcOm0ITuvt9Ve7ZtzTV/mRzXcI5N9YWtWbKV3cfQonV P31UXQCiOU0ui5wdFdLbvDrmbMzGeyanoxnoVmlxoyWyklPH2SwyWxpH3EKocDH8 o8+FeaupyK7JuXpRCMLdtm5i6/D8AjSlON4tnsQrW+fsXGtVQFAf4uIEphYY2nGB RxmkQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdduudefieekucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertd dtvdejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomheqnecuggftrfgrthhtvghrnhepleegveekkeekue eigfdtveeileeuhfefudefteekjeffkeejueejheegheegkedtnecuffhomhgrihhnpehp ohhsthhgrhgvshhqlhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhm pdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehroh hnlhhjohhhnhhsohhnjhhrsehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhgshhqlhdq ghgvnhgvrhgrlhesphhoshhtghhrvghsqhhlrdhorhhg X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 11 Oct 2025 23:21:07 -0400 (EDT) Message-ID: <15c40010-da97-4a87-9eab-8c23a72c0816@aklaver.com> Date: Sat, 11 Oct 2025 20:21:06 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections? To: Ron Johnson , pgsql-general References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/11/25 19:56, Ron Johnson wrote: > On Sat, Oct 11, 2025 at 7:11 PM Adrian Klaver > 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 > > We in the shell scripting daemon world don't think like that. > > -- > Death to , and butter sauce. > Don't boil me, I'm still alive. > lobster! -- Adrian Klaver adrian.klaver@aklaver.com