Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7JyB-0001xz-0v for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 15:21:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l7Jy9-0006es-Ku for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Feb 2021 15:21:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7Jy8-0006ek-Mt for pgsql-hackers@lists.postgresql.org; Wed, 03 Feb 2021 15:21:25 +0000 Received: from forward4-smtp.messagingengine.com ([66.111.4.238]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l7Jy5-00055k-07 for pgsql-hackers@lists.postgresql.org; Wed, 03 Feb 2021 15:21:24 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 7AA0419413E4; Wed, 3 Feb 2021 10:21:19 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 03 Feb 2021 10:21:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=suC+/Dgbk4eB6aC6VJZKm04EsSaGU2blyE3KgGrWj N0=; b=rmHJCWzfvtLTZVjb1A1JbmgibTQANLEo8TgkLu9GlgoaP5h7asIBnlHFG X00rC1hZqSuY7roTcux0urHTwAqdHWUQvoQSNCH1GkbtSQLjyo7amlxl+AAp2I5s +JB3FQ4g/uFG4QL85PFLzv6O7xkzMFVgXGC/VpzeKpGAyPb2UOV5xxm9bkolnb4b wHyr/on6p7ayplI73fkQzCvIZ+a30Z5Q4R1aZtAzmEzVXTn2THPKnriX4g12TtVs bHAE0KIjJ+kZlOYsMO4JPo0aVnn28/apTRVZTdQjklK6zPUctXtlgAzKm17v99ui Tp8NQzx3JqHYw7ue5xzfAmA6AumhA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrgedvgdejgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgvthgv rhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqh hurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtveeghedtjedvvedvleej ueevjeejtdellefgkeelfeeikeejlefgkedtudeuvdenucffohhmrghinhepvdhnughquh grughrrghnthdrtghomhenucfkphepkeejrddujeejrdeiledrudegtdenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b1458c.dip0.t-ipconnect.de [87.177.69.140]) by mail.messagingengine.com (Postfix) with ESMTPA id 5B7D3240057; Wed, 3 Feb 2021 10:21:18 -0500 (EST) Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade To: Magnus Hagander References: <20201027105308.GI4951@momjian.us> <20201027114000.GL4951@momjian.us> <798ee419-d9fc-075a-932c-2c16420eb39c@2ndquadrant.com> Cc: Bruce Momjian , PostgreSQL Developers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <455845d1-441d-cc40-d2a7-b47f4e422489@2ndquadrant.com> Date: Wed, 3 Feb 2021 16:21:17 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2021-01-17 14:38, Magnus Hagander wrote: > On Thu, Jan 7, 2021 at 11:53 AM Peter Eisentraut > wrote: >> >> 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. > > OK, thanks. I have applied it as such, with that message moved inside > the if statement. It appears that there is an extra blank line in the initdb output before "Success" now. -- Peter Eisentraut 2ndQuadrant, an EDB company https://www.2ndquadrant.com/