pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Magnus Hagander <magnus@hagander.net>
Cc: Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade
Date: Wed, 25 Nov 2020 09:29:55 +0100
Message-ID: <71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com> (raw)
In-Reply-To: <CABUevEy_mZN1nD85kRfOgQRWiPu5=UzETq3Pa2XE4fmku-8gcw@mail.gmail.com>
References: <CABUevEzo4t5bmTXF0_B9WzmuWpVbMpkNZZiGvzV8NZa-=fPqeQ@mail.gmail.com>
	<df2b2919-6e85-41ca-6570-3ae8ff86d889@2ndquadrant.com>
	<20201027105308.GI4951@momjian.us>
	<d8d691e9-b4cb-b063-a9f1-af8d3d62cac8@2ndquadrant.com>
	<20201027114000.GL4951@momjian.us>
	<CABUevEx+WfayfmA3+vd+u=Ox3o=AtHQSiC7f-86cyeLzVV8ceA@mail.gmail.com>
	<CABUevExaHs3UOJ_=yh=w5aZ8Bhd8drXgUUpDAoo_9Q4qgF2hmA@mail.gmail.com>
	<898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com>
	<CABUevEy_mZN1nD85kRfOgQRWiPu5=UzETq3Pa2XE4fmku-8gcw@mail.gmail.com>

On 2020-11-24 13:32, Magnus Hagander wrote:
> I think it boils down to that today the output from initdb is entirely
> geared towards people running initdb directly and starting their
> server manually, and very few people outside the actual PostgreSQL
> developers ever do that. But there are still a lot of people who run
> initdb through their wrapper manually (for redhat you have to do that,
> for debian you only have to do it if you're creating a secondary
> cluster but that still a pretty common operation).

Perhaps it's worth asking whom the advice applies to then.  You suggest 
it's mostly developers.  I for one am still grumpy that in 9.5 we 
removed the variant of the hint that suggested "postgres -D ..." instead 
of pg_ctl.  I used to copy and paste that a lot.  The argument back then 
was that the hint should target end users, not developers.  I doubt that 
under the current circumstances, running pg_ctl start from the console 
is really appropriate advice for a majority of users.  (For one thing, 
systemd will kill it when you log out.)  I don't know what better advice 
would be, though.  Maybe we need to add some kind of text adventure game 
into initdb.

-- 
Peter Eisentraut
2ndQuadrant, an EDB company
https://www.2ndquadrant.com/





view thread (43+ messages)  latest in thread

Message-ID: <71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com>
Permalink:  ../71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com/
Also on:    postgresql.org/message-id/71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com

 · 

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-hackers@postgresql.org
  Cc: peter.eisentraut@2ndquadrant.com, magnus@hagander.net, bruce@momjian.us
  Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade
  In-Reply-To: <71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com>
  References: <CABUevEzo4t5bmTXF0_B9WzmuWpVbMpkNZZiGvzV8NZa-=fPqeQ@mail.gmail.com> <df2b2919-6e85-41ca-6570-3ae8ff86d889@2ndquadrant.com> <20201027105308.GI4951@momjian.us> <d8d691e9-b4cb-b063-a9f1-af8d3d62cac8@2ndquadrant.com> <20201027114000.GL4951@momjian.us> <CABUevEx+WfayfmA3+vd+u=Ox3o=AtHQSiC7f-86cyeLzVV8ceA@mail.gmail.com> <CABUevExaHs3UOJ_=yh=w5aZ8Bhd8drXgUUpDAoo_9Q4qgF2hmA@mail.gmail.com> <898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com> <CABUevEy_mZN1nD85kRfOgQRWiPu5=UzETq3Pa2XE4fmku-8gcw@mail.gmail.com> <71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com>

* 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