Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOcNY-0002ry-GL for pgsql-general@arkaria.postgresql.org; Sat, 03 Oct 2020 07:54:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kOcNX-0005R7-22 for pgsql-general@arkaria.postgresql.org; Sat, 03 Oct 2020 07:54:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOcNW-0005Oy-QD for pgsql-general@lists.postgresql.org; Sat, 03 Oct 2020 07:54:50 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kOcNO-0004wA-VF for pgsql-general@lists.postgresql.org; Sat, 03 Oct 2020 07:54:49 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 26DDA3A5E; Sat, 3 Oct 2020 09:54:40 +0200 (CEST) Date: Sat, 3 Oct 2020 09:54:40 +0200 From: "Peter J. Holzer" 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? Message-ID: <20201003075440.GA18543@hjp.at> References: <22fd4d2d-e7da-f30c-62fa-d317b160abd3@aklaver.com-MHs-Dk2----2> <04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" Content-Disposition: inline In-Reply-To: <04e11ce6-9589-59a9-d31b-e4a1df753936@aklaver.com> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. > >=20 > > Just what I said in my original question. Something which is bundled and > > invisible to the user. >=20 > 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 =ABps -e=BB 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 go= ing > 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 --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAl94LjgACgkQ8g5IURL+ KF0jkhAAsrx0JQUjGjkszh6BDyIdJiZUDnJ8l5GNUIX7anRIF2LauLiDpAGDDlBz AVTlfvC+nnljf93Ei2+RciUYGoQK2FIEduUAdqPEmeDmC0xxb9kaELTR8IRaPSwF 0cfYpwj8XukJEilhzoxKlOyJejFvsUzcf/UdS2NPEMP3RbjFb6byT1zz82eN5QCl bWWveS/wGdMeNAmlW5fgWyyxeDjgMmO7P268odrp3VVb2si6dU0ahZV6uKNz6j97 W4IVaTDmm3S4FXyRXpQd+R4NbV+3jSoI70lufLgtxte4KycpSQIUXUTs97dniRfP POQA6ym3G7xCzxBqaeeDr1f5e/SJZQ00oSrR1NaBJ5m+60sDFnfJFTpzL5P0poDT WUh+pzk4UcEIWScMRxApqZPSTFZSYXGJhz4ibexmObNLEDQI1CL0Mq/S53U/IkKt WOOkWY7iecqRYCsZIsQmaLpeQaQfDT3Zpihqg+QxRJNupa7QcGkn55qwwMgu7rjB UN9+0XJi9oWAFkbg2OtbyokY/f3sHBTZDu2n7mrR5LMQbnljn/328Srdzo3d1Ly5 Zvc0PnzFf5VwVKrX1hGeiLWu++VQmLwI/JaTSaCouuDNC4qYSDfvfe84BZXPVo1l 4hwXZvlNAw78ba0fYtD7o84rZM8riQRfIs6aQMKDUlzVlFK6zeE= =7pPp -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM--