pg.ddx.io  pgsql-pkg-debian@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Verite <daniel@manitou-mail.org>
To: Andreas Karlsson <andreas@proxel.se>
Cc: Chris Travers <chris.travers@adjust.com>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Fred .Flintstone <eldmannen@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Tatsuo Ishii <ishii@sraoss.co.jp>
Cc: Joe Conway <mail@joeconway.com>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Cc: Christoph Berg <myon@debian.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Euler Taveira <euler@timbira.com.br>
Cc: Julien Rouhaud <rjuju123@gmail.com>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: PostgreSQL pollutes the file system
Date: Sat, 13 Apr 2019 17:57:44 +0200
Message-ID: <9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org> (raw)
In-Reply-To: <4bc92d6c-982a-a2f6-2caa-68365c184cca@proxel.se>

	Andreas Karlsson wrote:

> The Debian packagers already use pg_createcluster for their script which 
> wraps initdb, and while pg_initdb is a bit misleading (it creates a 
> 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,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite





view thread (113+ messages)

Message-ID: <9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org>
Permalink:  ../9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org/
Also on:    postgresql.org/message-id/9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org

 · 

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-pkg-debian@postgresql.org
  Cc: daniel@manitou-mail.org, andreas@proxel.se, chris.travers@adjust.com, alvherre@2ndquadrant.com, daniel@yesql.se, eldmannen@gmail.com, peter.eisentraut@2ndquadrant.com, ishii@sraoss.co.jp, mail@joeconway.com, pavel.stehule@gmail.com, myon@debian.org, tgl@sss.pgh.pa.us, andres@anarazel.de, tomas.vondra@2ndquadrant.com, mark.kirkwood@catalyst.net.nz, michael@paquier.xyz, euler@timbira.com.br, rjuju123@gmail.com, pgsql-hackers@lists.postgresql.org
  Subject: Re: PostgreSQL pollutes the file system
  In-Reply-To: <9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org>
  References: <4bc92d6c-982a-a2f6-2caa-68365c184cca@proxel.se> <9d0bf238-255d-4ccb-8ffb-a9fc2083cbe8@manitou-mail.org>

* 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