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 1khqBj-0005xm-8N for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Nov 2020 08:30:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1khqBi-0001bq-7X for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Nov 2020 08:30:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khqBh-0001aX-6x for pgsql-hackers@lists.postgresql.org; Wed, 25 Nov 2020 08:30:06 +0000 Received: from forward1-smtp.messagingengine.com ([66.111.4.223]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khqBa-0002Au-6O for pgsql-hackers@lists.postgresql.org; Wed, 25 Nov 2020 08:30:04 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.nyi.internal (Postfix) with ESMTP id 252ED1948B5F; Wed, 25 Nov 2020 03:29:57 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Wed, 25 Nov 2020 03:29:57 -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=fm1; bh=e841n3SE2JiTDzodUq67Mod+QDfWZRbb2YgEDd2bH aM=; b=o90qPtuZY5n1bShv4147jkojrsowyqIOkIeUlQIwvZE2yVFy88Fl49pPh cMscrF0N3/LLvn/U3bJLovgv6p05uYc2y+5Jy7qUuhJY98+UlT+9+NFd2f57k5Uh iIKOAgPWxt//rsw/ayKTmzKQoACHdtsUN7zOT8z7i49ynx2iApNCMb9gF3UZQb7F 3/U88tJpqk2JMAPnNPvYgcUjY9bRFEO99bmnPcgwDz4MaACXN5mi8vIqxd8kzsUo YYjLkNSZp6/+3WgGU8Nex3NNHFjeI2WWFMv7q+ag2+mAYLaEPpaYSl7FMe2p8pUv bdEiASx3rYrb9PBBccC66JtMjpRhw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudegledguddvtdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefuvfhfhfhokffffgggjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsedvnh guqhhurggurhgrnhhtrdgtohhmqeenucggtffrrghtthgvrhhnpedtveeghedtjedvvedv leejueevjeejtdellefgkeelfeeikeejlefgkedtudeuvdenucffohhmrghinhepvdhnug hquhgrughrrghnthdrtghomhenucfkphepkeejrddujeejrdejhedrleegnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghish gvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhm X-ME-Proxy: Received: from april.pezone.net (p57b14b5e.dip0.t-ipconnect.de [87.177.75.94]) by mail.messagingengine.com (Postfix) with ESMTPA id D8C5D328005A; Wed, 25 Nov 2020 03:29:55 -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> <898279ea-7b33-02a3-5357-6dc03bdef0ff@2ndquadrant.com> Cc: Bruce Momjian , PostgreSQL Developers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <71813699-2992-fbde-1787-27f216f1ef35@2ndquadrant.com> Date: Wed, 25 Nov 2020 09:29:55 +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 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/