pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem?
Date: Sat, 3 Oct 2020 09:54:40 +0200
Message-ID: <20201003075440.GA18543@hjp.at> (raw)
In-Reply-To: <04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com>
References: <MHDH6oj--3-2@tutanota.com>
	<CAJvJg-T7nwjzZGMdDK_CDGh8FNWcuiiQznXRmUC_HJ-34u5aeg@mail.gmail.com-MHlnAd9----2>
	<MHrvbo1--3-2@tutanota.com>
	<22fd4d2d-e7da-f30c-62fa-d317b160abd3@aklaver.com-MHs-Dk2----2>
	<MHwIcts--3-2@tutanota.com>
	<04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com>

On 2020-09-23 13:38:19 -0700, Adrian Klaver wrote:
> On 9/23/20 11:51 AM, tutiluren@tutanota.com wrote:
> >     This comes down to what your definition of embedded is? A matter of
> >     determining whether we are talking apples or oranges.
> > 
> > Just what I said in my original question. Something which is bundled and
> > invisible to the user.
> 
> That is going to be difficult with Postgres as it is its own process. It
> would take a good bit of tooling to hide that from the user.

I guess that comes down to the definition of "invisible". PostgreSQL
certainly won't be invisible to a user running «ps -e» on Linux or using
the task manager on Windows. It also won't be invisible to someone who
examines the file system and discovers a directory structure with
PostgreSQL's rather distinctive file names (the latter is of course true
for SQLite, too).

But I don't see any great difficulty in bundling PostgreSQL with an
application, such that it is automatically installed, configured,
populated and managed by the application. The user might never notice
that it's there at all.

But this is the responsibility of the application's author: The author
can put work into an installer or they can decide that it's better (for
some definition of "better") to tell the user to install PostgreSQL
themselves. It has very little to do with PostgreSQL.


> It is more then that. It would have to take into account the behavior
> changes that happen in Postgres between major versions. It also would have
> to account for OS specific parameters and the changes that happen there
> between OS versions. It also would need to 'know' how the database was going
> to be used;

This is IMHO the most important point: Memory, CPUs, OS versions: There
is only so much variety. But how the database is used - that can be very
different. For example, on our largest database server I have work_mem
set to 1/8 of the total RAM. This is not something I would recommend
generally, but it works well for our workload. And most importantly it
isn't something that can be determined statically - it depends on the
behaviour of the application. So either you already know that (which I,
as the author of our application do (mostly), but a Postgres tuning tool
can't) or you observe the application for some time (weeks, probably)
and adjust parameters (this is something a tool could do, and maybe
better than a human, but this is getting into AI territory).

        hp

-- 
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (40+ messages)  latest in thread

Message-ID: <20201003075440.GA18543@hjp.at>
Permalink:  ../20201003075440.GA18543@hjp.at/
Also on:    postgresql.org/message-id/20201003075440.GA18543@hjp.at

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: hjp-pgsql@hjp.at
  Subject: Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem?
  In-Reply-To: <20201003075440.GA18543@hjp.at>
  References: <MHDH6oj--3-2@tutanota.com> <CAJvJg-T7nwjzZGMdDK_CDGh8FNWcuiiQznXRmUC_HJ-34u5aeg@mail.gmail.com-MHlnAd9----2> <MHrvbo1--3-2@tutanota.com> <22fd4d2d-e7da-f30c-62fa-d317b160abd3@aklaver.com-MHs-Dk2----2> <MHwIcts--3-2@tutanota.com> <04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com> <20201003075440.GA18543@hjp.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox