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 1kc8AR-0000vL-8B for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 14:29:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kc8AP-0000Pw-TW for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 14:29:09 +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 1kc8AP-0000Pd-M4 for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 14:29:09 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kc8AJ-0002ND-1L for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 14:29:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 156251384; Mon, 9 Nov 2020 09:29:00 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 09 Nov 2020 09:29:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=lI4Ko5s8fcU8Xfkum FFbJiN8aRlWG7BG5W1mK4SAyW0=; b=UlC0WOWmrHS+uGdvsm6pdvLU46tOB4A8V KNt9G/x4vNHvAFDO82jCL5OoJudY7doqIqMoqi4VqDfOADhjzPsbbY6ExWeITjW2 E+WMog6EiHtioBldEpg3PXDZHIR/9Qsqc2ylGNjeKlJdwx5t34oIRJ4T+1AA4lN0 TmE4q3/5XtueWQa9PDTozL82L86Z7G3hR1rI65qlJl0jxOnLvWVPzL+/22suSI8V wwNNlZPSfi8J+uTPjYAr5llPaOM0Uqc/IzyHB8c/5InpzFDYV7GFunQ1f1efKUcp cTM3Zj92OwR5PkxYgjP9JfIn/q4XA92hGuQPQRbNr0MaOskZF2KzQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudduhedgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggujggfsehttdertddtredvnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeevgfelveegueejgefhgeetgefhgeehieefheehleetteei udeiiefhgffgheffteenucfkphepudeltddrleehrdduledrudegkeenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghl vhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: from perhan.alvh.no-ip.org (unknown [190.95.19.148]) by mail.messagingengine.com (Postfix) with ESMTPA id DD1503280059; Mon, 9 Nov 2020 09:28:58 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9324D2A154D; Mon, 9 Nov 2020 11:28:56 -0300 (-03) Date: Mon, 9 Nov 2020 11:28:56 -0300 From: Alvaro Herrera To: Magnus Hagander Cc: Anastasia Lubennikova , Bruce Momjian , Peter Eisentraut , PostgreSQL Developers Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade Message-ID: <20201109142856.GA3956@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Nov-09, Magnus Hagander wrote: > But for usability that makes less sense. For the delete script, the > wrapper (that the switch is intended for) knows more than pg_upgrade > about how to delete it, so it can do a better job, and thus it makes > sense to silence it. But for something like these .sql (and also in > the previously mentioned case of extension upgrades), pg_upgrade knows > more and the only thing the wrapper could do is to reimplement the > same functionality, and maintain it. > > I wonder if the best way forward might be to revert it back to being a > --no-instructions switch, remove the delete_old_cluster.sh script > completely and just replace it with instructions saying "you should > delete the old cluster", and then keep generating these scripts as > necessary? How about a switch like "--with-scripts=" where the list can be "all" to include everything (default), "none" to include nothing, or a comma-separated list of things to include? (Also "--with-scripts=help" to query which things are supported) So "--with-scripts=reindex_hash,largeobject" omits the useless delete_old_cluster script and keeps the ones you want. Perhaps you could see it in the negative direction as more convenient, so --suppress-scripts=delete_old_cluster