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 1v8KGw-00GMeZ-5O for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 15:15:38 +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 1v8KGt-006PWR-RF for pgsql-general@arkaria.postgresql.org; Mon, 13 Oct 2025 15:15:36 +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 1v8KGt-006PWI-GY for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 15:15:36 +0000 Received: from mail-oa1-x29.google.com ([2001:4860:4864:20::29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v8KGs-001wx0-09 for pgsql-general@lists.postgresql.org; Mon, 13 Oct 2025 15:15:35 +0000 Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-3b3ce7277b3so1193908fac.2 for ; Mon, 13 Oct 2025 08:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760368532; x=1760973332; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=09WyMSRMg8GiCuGYw6KrPLIUT6T6e71BxA4K4kgqsoQ=; b=L0tuYkPJ5SgGm4WRX2V4BUIE53EHnZdwBtaufRUFni97EvADEAFDkX9gSgfHu91WKT sN8UvnRzYKHv7bNteZNqCYJWRMx0k66XO16RKh2LdxH0dTNqELf9hpuXU+f0U0UhgPZJ ub5pIDAtZDuE0nrxhhIhizwGpoWTCiJfyw8NjhOLQTQfT8xdpJuK7mjLvU2RwuQFHlSO E8API8ewGQOyml001q409eyfjoxWMZy0jWf3aJGjR1KSbU4vAIcyRCkvXay+oFwq0iKv c40ddz5hMAR2nY3+tNwLAQQvMglMEsh+FHPh42ErKgnUARv38xcHPqQSfLydgDeD6Q+S 6h8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760368532; x=1760973332; h=content-transfer-encoding:cc: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=09WyMSRMg8GiCuGYw6KrPLIUT6T6e71BxA4K4kgqsoQ=; b=gYFGLJmKsgQyzGoZhkRmHDAwFXf2zDcctNkU8MJdHcnhANr4yEf9YPeweQ7C+QlxYK zWOm/AMUw2l/EH+Y5aTfw6RbEpsI8ugoTsnsdDNgTPm90pSsagG8wA9vUoNSu5dVbUIK DrIVxJnkAiPhvI3cGF1GjTceKiZu7KpvCSzBgkT43Uq7gPW6P/2eiB8GvbBwYbrV4I7X fArVg8FaZ/oYy4NIO7s2URJ6QnNzUF365ZltNSRm1E+CyDUefUjegL5QtUVxNcA8SI4r wvp7v0u0ZNtr2ygMAYyzA+R+xg3btLhAiW/4Pyi51BBO8ZmcCfvnlKzPPTvU8mJ6h4Ul 380g== X-Gm-Message-State: AOJu0YzvXL+DfTaj+neSQGlcUQRV5+SSY8oSl9vuA/KQZc3LlP8h8Yxt wWRvRCyMkgcva8qFggToTnYeZbBI8ELbrfdlb3SdrOfyai1AvFuSdotk9RmXfK947nuLkGEDN5B ray1fK/h72SxeUulZgokG+bx2fm+AuuQ= X-Gm-Gg: ASbGncuHM9dNX2oxYgocJa1HrhHCTI+CKu1mt/1gyFFk/I2OdaP2O15CJc3ckHwXDz8 TzkQmpuns7eUtu2gkEGlms7N90xqy1HXJlVVaScpbBitv0FIWH8pwA6vMSUjN+YUo73snClBbWX uBHYdCu1jRw5pXrQJM16fweKm6Lr72SZDKSq4nPyWBbwnfrLdn5mqUjZg82t+HeJB+LI89q3LCI YfgxCxVlIfEhISBmQ/4qirtwvzYRDUPXmSf4os= X-Google-Smtp-Source: AGHT+IH+DOxaDZAA/IVWWE7TyyT1uzSSEJtvQorkiaS6BCeRRbnGRyo/ezJM9DDy8OgRcdC4tDbjm+25zG8TU2xpAcE= X-Received: by 2002:a05:6871:690:b0:32a:40d6:e406 with SMTP id 586e51a60fabf-3c0f8dba946mr9849892fac.39.1760368531864; Mon, 13 Oct 2025 08:15:31 -0700 (PDT) MIME-Version: 1.0 References: <73ff46d2-0bad-4a8d-9928-e494c2d5b0d1@gmail.com> <93702.1760321769@sss.pgh.pa.us> In-Reply-To: From: Dominique Devienne Date: Mon, 13 Oct 2025 17:15:20 +0200 X-Gm-Features: AS18NWCGAafZSj_qsEbObBs-6QuPqdFocoqFWaZq2OgbN2RSP-tAsMJ11eYkxks Message-ID: Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections? To: Ron Johnson Cc: "pgsql-generallists.postgresql.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Oct 13, 2025 at 5:08=E2=80=AFPM Ron Johnson wrote: > On Mon, Oct 13, 2025 at 4:47=E2=80=AFAM Dominique Devienne wrote: > [snip] >> There's apparently no way to abstract the "transport" between libpq >> and the server, must be TCP (or *nix only socket files), cannot be an >> in-memory channel (for the embedded non-shared case), > I'd bet a nickel that local socket transfers all stay in memory. But that's not cross-platform... Needs to work the same on Windows. >> nor shared-memory (for the shared-case across localhost processes). > Shared memory means that I can stomp all over you, and you can't stop me.= That's the antithesis of ACID. SHM is how SQLite in WAL mode coordinates access to the same DB from several connections. So if it's good enough for SQLite, I don't see what it would be wrong for PostgreSQL too. SQLite is also ACID.