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 1v7iUX-006mlE-9K for pgsql-general@arkaria.postgresql.org; Sat, 11 Oct 2025 22:55:09 +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 1v7iUT-00H4XU-5s for pgsql-general@arkaria.postgresql.org; Sat, 11 Oct 2025 22:55:06 +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 1v6a12-00ChVm-Ij for pgsql-general@lists.postgresql.org; Wed, 08 Oct 2025 19:40:01 +0000 Received: from mail-vs1-xe35.google.com ([2607:f8b0:4864:20::e35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1v6a10-000iwE-1X for pgsql-general@lists.postgresql.org; Wed, 08 Oct 2025 19:40:00 +0000 Received: by mail-vs1-xe35.google.com with SMTP id ada2fe7eead31-59dff155dc6so127609137.3 for ; Wed, 08 Oct 2025 12:39:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=davidbarsky.com; s=google; t=1759952398; x=1760557198; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=NN+ETB4X86FctjoFba0uVlVeKrIGF+5VXCPTF4EXXNI=; b=dGEiQaUEwgFl4kn/l6ZJ97GNgtNbdlQqmsLoE8j/s/65lzqKUGkNlbAG3g9c0E+ZOS A0PWEbIMS9All4UnM1L6oN3CLYV9WqAsjsKz/wWltEX3hVyRPmWIDVRxoZI8kcsoQhkY GaJ0oqhujeI7SvJZxYuhfPEyHnfcp99lAr13/68EhdQqmShizZE+EWDyURwOA1oW5LqU FRj9dyfK2hf82+CSiM2fqe3H6Duf4/UsXXcBByHMlgogVWvgXaBGQ02N9FqMLM1uDjOU a3Ulhq2cLGsHxNP6KpW8cibEtLCjgdbDFgruswanmnv7jVR39NTvTXk1m95xpstYKlrw v/yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1759952398; x=1760557198; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=NN+ETB4X86FctjoFba0uVlVeKrIGF+5VXCPTF4EXXNI=; b=WKyRgiJCM1qeS36v2YuTphxZUM2iJ0arhXLLmfWe7rs7+udSfQvbdw84xBHXrLzbMI BUmNoy46ggHZC149PXYzzMuVavhhbEArfLyGQznToaUndx5d/vfrIQGHko9KQpPoenxx LYBP/YuNh99CHoTX5IvKgj43C6br6JWrUHhjR+mxgGrhE9+I8N05HTvvZpYh9hQVVKDq Hy6zwzVnMwrZLZw7X59iqNEVMIhGhQlg6h3UO93WD8fpNdDDipH5pD0H+2zCc/GKmwrH rXtC714WjaP79IL5t2W0MRT3rNs4D0zbT2Ckur1gYexioGDp03sBX51oyNybc9tavNiv fVDQ== X-Gm-Message-State: AOJu0YxNWrYaqIJ8GosSvJhfFF1Q+BSG5Nu8Ffa3/ldX08V6+TeKGEvE OVaDSEtDPp3th2paLc/yrv0hmuCg62zAnPEkOTDCkoBgnVRj+KD0hhCpb0Z2FgL582RXy9H8Uhv rTmqn2pwdq/RNhbE4ofe7qcRgfkQ1yr3g0yl6sP2CFmw+WztGLPfxAa4= X-Gm-Gg: ASbGncv9O6gHjZ/9yIDLpDkBE1BvP2P2SdH2qMdgXcUXAQrLAqBHqpX32AEB09etDzT Xj8VFKocl5a89vYOGQ8ZzzKCvZTQaCJwT+NP1AzzAiOjuVI2XljsuNv3E7DrCmfWkFx33WfDhky Pc+j1qAZPPl9ic9L3xI93Ec71KlAiCH3P6MlW+px1danqUojlKLT9CjS2BFA8c4BUSwwtac9FZP wk/MwNI1Y3p0gR7V80xEj54SHJPiNDCzuz4XALnkON7GRjYLPUnA4ayyIs6s72H X-Google-Smtp-Source: AGHT+IEVttfb+H+dkK8WE+Wvw8VSJtqhNCeNN6Oq8ULPgJWG1UCb0Vo9GzsLjDYURA6fj1CSPfRlKq1CxszegYqlCJ8= X-Received: by 2002:a05:6102:160d:b0:5a8:fc68:5da6 with SMTP id ada2fe7eead31-5d5e21fbca1mr2095522137.6.1759952398203; Wed, 08 Oct 2025 12:39:58 -0700 (PDT) Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Wed, 8 Oct 2025 12:39:57 -0700 Received: from 1064022179695 named unknown by gmailapi.google.com with HTTPREST; Wed, 8 Oct 2025 12:39:53 -0700 MIME-Version: 1.0 (Mimestream 1.8.3) From: David Barsky Date: Wed, 8 Oct 2025 12:39:57 -0700 X-Gm-Features: AS18NWDew4L7zDscNKWy_pCOE2tgyCs6WeRKgniFEgHnTJGGiKQ8gN4uKDtDCf0 Message-ID: Subject: Option on `postgres` CLI to shutdown when there are no more active connections? To: pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000844f980640aad9cb" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000844f980640aad9cb Content-Type: text/plain; charset="UTF-8" Hiya folks, I'm a bit of a newcomer when it comes to PostgreSQL, so I apologize if this is the wrong mailing list. Anyways, my two questions: 1. Is there any interest in adding a command line option to the `postgres` CLI that shuts down the PostgreSQL instance once (and optionally cleans up the data directory) once all connections have disconnected? a. Alternatively, I wouldn't mind accomplishing this via the single-user mode if it could accept the binary/wire protocol in addition to the current text protocol. 2. Are there plans for having any additional table access methods beyond `HEAP` shipping as part of Postgres? I'd love to have something that's purely in-memory to bypass the tempdir dance that I'm currently doing. For context, I'm trying to make it easier to test our application against a live, actual PostgreSQL instance and make the experience feel a lot like sqlite's embedded/in-memory workflow. Today, we've gotten really great latencies via test transactions, but I'd also like to ensure that there aren't any orphaned Postgres processes at the end of a test run or without requiring the user to start an instance of Postgres prior to running the tests. Warmest regards, David --000000000000844f980640aad9cb Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hiya folks,

I'm a bit of = a newcomer when it comes to PostgreSQL, so I apologize if this is
the wrong mailing list. Anyways, my two questions:

1. Is there any interest in adding a command line option to the `postgres= ` CLI
=C2=A0 =C2=A0that shuts down the PostgreSQL instance once (= and optionally cleans up the
=C2=A0 =C2=A0data directory) once al= l connections have disconnected?
=C2=A0 =C2=A0a. Alternatively, I= wouldn't mind accomplishing this via the single-user
=C2=A0 = =C2=A0 =C2=A0 mode if it could accept the binary/wire protocol in addition = to the
=C2=A0 =C2=A0 =C2=A0 current text protocol.
2. A= re there plans for having any additional table access methods beyond `HEAP`=
=C2=A0 =C2=A0shipping as part of Postgres? I'd love to have = something that's purely
=C2=A0 =C2=A0in-memory to bypass the = tempdir dance that I'm currently doing.
For context, I'm = trying to make it easier to test our application against a
live, = actual PostgreSQL instance and make the experience feel a lot like
sqlite's embedded/in-memory workflow. Today, we've gotten really = great
latencies via test transactions, but I'd also like to e= nsure that there aren't
any orphaned Postgres processes at th= e end of a test run or without requiring
the user to start an ins= tance of Postgres prior to running the tests.

Warm= est regards,
David
--000000000000844f980640aad9cb--