Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFL2T-0000by-Dx for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Apr 2019 15:57:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hFL2S-00067E-5W for pgsql-hackers@arkaria.postgresql.org; Sat, 13 Apr 2019 15:57:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFL2R-000676-TM for pgsql-hackers@lists.postgresql.org; Sat, 13 Apr 2019 15:57:55 +0000 Received: from mail.verite.pro ([185.16.44.216]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hFL2P-0000TG-75 for pgsql-hackers@lists.postgresql.org; Sat, 13 Apr 2019 15:57:55 +0000 Received: from genius-map.net (unknown [195.154.189.246]) by mail.verite.pro (Postfix) with ESMTP id B8F758C0021; Sat, 13 Apr 2019 17:52:24 +0200 (CEST) Received: by genius-map.net (Postfix, from userid 1001) id B008D38A02BA; Sat, 13 Apr 2019 17:57:47 +0200 (CEST) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: PostgreSQL pollutes the file system From: "Daniel Verite" To: "Andreas Karlsson" Cc: "Chris Travers" ,"Alvaro Herrera" ,"Daniel Gustafsson" ,"Fred .Flintstone" ,"Peter Eisentraut" ,"Tatsuo Ishii" ,"Joe Conway" ,"Pavel Stehule" ,"Christoph Berg" ,"Tom Lane" ,"Andres Freund" ,"Tomas Vondra" ,"Mark Kirkwood" ,"Michael Paquier" ,"Euler Taveira" ,"Julien Rouhaud" ,"Postgres hackers" In-Reply-To: <4bc92d6c-982a-a2f6-2caa-68365c184cca@proxel.se> Date: Sat, 13 Apr 2019 17:57:44 +0200 Message-Id: <9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andreas Karlsson wrote: > The Debian packagers already use pg_createcluster for their script which= =20 > wraps initdb, and while pg_initdb is a bit misleading (it creates a=20 > cluster rather than a database) it is not that bad. But that renaming wouldn't achieve anything in relation to the stated goal, since initdb is not in the $PATH in Debian/Ubuntu systems. It's part of the version-specific binaries located in /usr/lib/postgresql/$VERSION/bin, which are not meant to be called directly, but by the pg_*cluster* scripts that you mention, or pg_wrapper. Moreover, aside from package-specific issues, initdb can already be invoked through "pg_ctl initdb" since 2010 and version 9.0, as mentioned in: https://www.postgresql.org/docs/9.0/app-initdb.html This evolution was the result of discussions pretty much like the present thread. 9 years later, who bothers to use or recommend the new form? AFAICS nobody cares. Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite