public inbox for [email protected]
help / color / mirror / Atom feedFrom: Tom Lane <[email protected]>
To: Rob Sargent <[email protected]>
Cc: [email protected]
Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
Date: Sun, 12 Oct 2025 22:16:09 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <CAPR5_5psNqCm1OQr5LL4v6z02Sh=2YHYUg8NY+3xMzfGHfKs+w@mail.gmail.com>
<[email protected]>
<CAPR5_5q2oCkw19rHb7oy-M0M0purWFM5Jc8ub5xDy_NdhUmRTw@mail.gmail.com>
<[email protected]>
Rob Sargent <[email protected]> writes:
> On 10/12/25 16:10, David Barsky wrote:
>>> Postgres is not an embedded database, if you want that experience then
>>> use a database that is designed to be embedded.
>> That's fair, especially from an operational standpoint. However, I _think_
>> Postgres can get really close to an embedded database's development
>> experience
>> by doing a few tricks that I'll elaborate on later on in this email.
> Were I a betting man, I would bet heavily against this community, which
> prides itself on NOT losing data, allowing an option that would do just
> that.
Well, mumble ... we have any number of options that can be read that
way. One obvious one is that we don't try to prevent you from putting
$PGDATA on a RAM disk. Turning off fsync is another popular way to
trade away durability for speed.
But I concur with the point that we're not here to pretend to be an
embedded database, as there are other projects that do that better
(for example, our good friends at SQLite).
The advice I'd give the OP is to take a look at our TAP-test
infrastructure. We've put a good deal of effort, and are continuing
to do so, into letting those tests spin up transitory testing
databases pretty cheaply.
regards, tom lane
view thread (11+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: Re: Option on `postgres` CLI to shutdown when there are no more active connections?
In-Reply-To: <[email protected]>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox