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 1v8P8m-0002qi-7b for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 20:27:32 +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 1v8P8k-007r9t-0F for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 20:27:30 +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 1v8P8j-007r9k-Lz for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 20:27:30 +0000 Received: from mail-oa1-x33.google.com ([2001:4860:4864:20::33]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v8P8i-001aPO-2w for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 20:27:29 +0000 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-35ba7c71bfdso2204637fac.3 for ; Mon, 13 Oct 2025 13:27:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760387248; x=1760992048; darn=lists.postgresql.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=kbIiWar2KvNZlHP3iimqtfxUteDJfQYPn9AHJokgPrc=; b=PA6N+zvCoTuMQivoa0TCYNbQtne3fIZ70hBVBQB/31BK1LLvDpBfhDsd2vHWew9zhC k5ef7t8nMVV45+W58jeu2+uVdNcQgD/6C+5f4cX7dh4BBWgOnsAEAxdN6nH51hUOV90b XsfBN9ZO3hVt6a3xpZvxsAGAFAHv1CmMf2dIQwzGjBpBbQtGXT9bILe1ur6yAIrTgPYQ xfhTwRlPa/+BqU5WcKIqtj8Lh/JDk5d5ar2TiVTPFvyDX/69w5/9FE0ns9z5ENO2X7iS 75G93RA/5UucBT+ah9SNUbiv/ePc7hC51w9AwsIq9iNXmX3fBA3ZZaFZ52wnjrmYGYKy +vIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760387248; x=1760992048; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=kbIiWar2KvNZlHP3iimqtfxUteDJfQYPn9AHJokgPrc=; b=Uzb5J+PT1YQtY3XIfGgjV+DtswJtZyUDSiO4gv8aCeUpW7IM03mh9/eLfdpNFakKo+ GugZ+qVII+RLc9eLY8mwhgUmu8fAeOB4uGZjU6NR2IRe8o6guRqDfEcJfjxzyOjnclus dX54mMF1GiuaVG+dxspuuKmIPsNYhgTTxTlxqcbYq6YhhYfVyVVb6B1K6mrbp82uvMOx uOVXyOD1yRQwskw50VHIAqVFT6pJ+cznTwehPESMczgAGqlU6jFbh5USy7Exs9mxue/U z4Nl61pgGNlJYmUfOJc5p77VHcAQFNgFqQbsv1uWnp3CPC06zpX7OfhMUy7momXKUQZ6 6vOQ== X-Gm-Message-State: AOJu0YxjDoS36LKfI3wasQozoOf+jNineErZ7bUNmXXF029LXiPMvEBB sVpeS+JPphzTAqqIsIDMm+4c6E5/6ndTARXu9Dh4vLnCll8/ezU7X72okteKfMCnA32hnmCHrCX QYDSVvf4w91xjgT1dfwahLgBJs/yeg6jjkg== X-Gm-Gg: ASbGncuV7xee8M+U5E7HByeCDfqvUJqQYZiz9Z3iIws9V+ydGANeeZm0l5VVdndmYAF HB5Mm4UkWFYUQacoWnZeicjtajU5JgRGRl/wcek2/wAdRVgJPIcUOz2aE0waGzFKMSWG+TFQDkO SmxRu/1seGzFmwl9RcwjiYPxeiJRVrJ22bS1DftndyTlv5BWumphPpQcvGl/ESbCQP14Ye2pBB2 xaPx+vIrfgVQvfCRNRwoadKrDTFdeTie7aM8wU= X-Google-Smtp-Source: AGHT+IHc5uLtIL/vAh8mmc92HJ7Gain2yu7Zc6mSzAT6ob2ysLy3oClWZ0+hLg1FD5qz03Hsi+ofV2yaJK/OF83BvV8= X-Received: by 2002:a05:6870:15c7:b0:375:db59:20e3 with SMTP id 586e51a60fabf-3c0f9c7b01bmr9431604fac.34.1760387248087; Mon, 13 Oct 2025 13:27:28 -0700 (PDT) MIME-Version: 1.0 References: <73ff46d2-0bad-4a8d-9928-e494c2d5b0d1@gmail.com> <93702.1760321769@sss.pgh.pa.us> <233155.1760369829@sss.pgh.pa.us> In-Reply-To: From: Ron Johnson Date: Mon, 13 Oct 2025 16:27:17 -0400 X-Gm-Features: AS18NWAHzdfxwIIo6dPzks_V9PuWAjjgVy0JGal8bZZbBexI6tmqVhwQv1UkpXM Message-ID: Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections? To: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000096e5c80641101823" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000096e5c80641101823 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Oct 13, 2025 at 3:19=E2=80=AFPM David Barsky w= rote: [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 Postgr= es > 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=3D100"` or `pg-ctl start --exit-mode=3Dsmart`? > If testing is all scripted, then why not put "pg_ctl stop" at the end of the script? --=20 Death to , and butter sauce. Don't boil me, I'm still alive. lobster! --00000000000096e5c80641101823 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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