Re: Prevent printing "next step instructions" in initdb and pg_upgrade

Peter Eisentraut <peter.eisentraut@2ndquadrant.com>

From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Magnus Hagander <magnus@hagander.net>, Bruce Momjian <bruce@momjian.us>
Cc: PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2021-01-07T10:53:17Z
Lists: pgsql-hackers
After pondering this again, I think we can go with initdb 
--no-instructions, as in your patch.

As a minor nitpick, I would leave out the

     else
         printf(_("\nSuccess.\n"));

in the --no-instructions case.

(I don't know where the pg_upgrade part of this discussion is right now.)

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



Commits

  1. Remove extra Success message at the end of initdb