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>
To: 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: Fri, 20 Nov 2020 16:45:59 +0100
Message-ID: <898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com> (raw)
In-Reply-To: <CABUevExaHs3UOJ_=yh=w5aZ8Bhd8drXgUUpDAoo_9Q4qgF2hmA@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>

On 2020-11-09 13:05, Magnus Hagander wrote:
> PFA a rebased version of this patch on top of what has happened since,
> and changing the pg_upgrade parameter to be --no-scripts.

It seems were are still finding out more nuances about pg_upgrade, but 
looking at initdb for moment, I think the solution for wrapper scripts 
is to just run initdb with >dev/null.  Or maybe if that looks a bit too 
hackish, a --quiet option that turns everything on stdout off.

I think initdb has gotten a bit too chatty over time.  I think if it 
printed nothing on stdout by default and the current output would be 
some kind of verbose or debug mode, we wouldn't really lose much.  With 
that in mind, I'm a bit concerned about adding options (and thus 
documentation surface area etc.) to select exactly which slice of the 
chattiness to omit.

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





view thread (43+ messages)  latest in thread

Message-ID: <898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com>
Permalink:  ../898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com/
Also on:    postgresql.org/message-id/898279ea-7b33-02a3-5357-6dc03bdef0ff@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: <898279ea-7b33-02a3-5357-6dc03bdef0ff@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>

* 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