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 1kc74V-0006Qp-4W for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 13:18:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kc74T-0003Id-0W for pgsql-hackers@arkaria.postgresql.org; Mon, 09 Nov 2020 13:18:57 +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 1kc74S-0003IW-L3 for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 13:18:56 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by magus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kc74P-0001ok-DN for pgsql-hackers@lists.postgresql.org; Mon, 09 Nov 2020 13:18:56 +0000 Received: from [192.168.1.70] (ppp91-77-10-100.pppoe.mtu-net.ru [91.77.10.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id D2DBB21C079D; Mon, 9 Nov 2020 16:18:50 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1604927930; bh=zj2iHVUbVU/ZyKPbL1P59iJiHNqCbP9r3Rc5soYoJ1E=; h=Subject:To:Cc:References:From:Date:In-Reply-To; b=RvvxQSVQEvyPN/20ov5dP0uYrFPuonMYShxUcqkEND0bRABnZRVXb+TeNfNYlXE4Z sLTI5NQWdZEhP7QSiEP/NSLm0RKSFDzmFlH+W3h9YqG+WKZdPeiZ/OzeebQjc4DEoS S+Bt+pt+8dyDCaYtsrvf/IGLEVR/diUfVQZrGyKw= Subject: Re: Prevent printing "next step instructions" in initdb and pg_upgrade To: Magnus Hagander , Bruce Momjian Cc: Peter Eisentraut , PostgreSQL Developers References: <20201027105308.GI4951@momjian.us> <20201027114000.GL4951@momjian.us> From: Anastasia Lubennikova Message-ID: Date: Mon, 9 Nov 2020 16:18:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------FDDCE286788734CB28DE690D" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------FDDCE286788734CB28DE690D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 02.11.2020 16:23, Magnus Hagander wrote: >>>> On Tue, Oct 27, 2020 at 11:35:25AM +0100, Peter Eisentraut wrote: >>>>> On 2020-10-06 12:26, Magnus Hagander wrote: >>>>>> I went with the name --no-instructions to have the same name for both >>>>>> initdb and pg_upgrade. The downside is that "no-instructions" also >>>>>> causes the scripts not to be written in pg_upgrade, which arguably is a >>>>>> different thing. We could go with "--no-instructions" and >>>>>> "--no-scripts", but that would leave the parameters different. I also >>>>>> considered "--no-next-step", but that one didn't quite have the right >>>>>> ring to me. I'm happy for other suggestions on the parameter names. >>>>> What scripts are left after we remove the analyze script, as discussed in a >>>>> different thread? >>>> There is still delete_old_cluster.sh. >>>> I wonder if we should just not do it and just say "you should delete >>>> the old cluster". Then we can leave it up to platform integrations to >>>> enhance that, based on their platform knowledge (such as for example >>>> knowing if the platform runs systemd or not). That would leave us with >>>> both pg_upgrade and initdb printing instructions, and not scripts, and >>>> solve that part of the issue. >>>> Do we only care about .sh scripts? There are also reindex_hash.sql and pg_largeobject.sqlin src/bin/pg_upgrade/version.c with instructions. How should we handle them? -- Anastasia Lubennikova Postgres Professional: http://www.postgrespro.com The Russian Postgres Company --------------FDDCE286788734CB28DE690D Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
On 02.11.2020 16:23, Magnus Hagander wrote:
On Tue, Oct 27, 2020 at 11:35:25AM +0100, Peter Eisentraut wrote:
On 2020-10-06 12:26, Magnus Hagander wrote:
I went with the name --no-instructions to have the same name for both
initdb and pg_upgrade. The downside is that "no-instructions" also
causes the scripts not to be written in pg_upgrade, which arguably is a
different thing. We could go with "--no-instructions" and
"--no-scripts", but that would leave the parameters different. I also
considered "--no-next-step", but that one didn't quite have the right
ring to me. I'm happy for other suggestions on the parameter names.
What scripts are left after we remove the analyze script, as discussed in a
different thread?
There is still delete_old_cluster.sh.
I wonder if we should just not do it and just say "you should delete
the old cluster". Then we can leave it up to platform integrations to
enhance that, based on their platform knowledge (such as for example
knowing if the platform runs systemd or not). That would leave us with
both pg_upgrade and initdb printing instructions, and not scripts, and
solve that part of the issue.

Do we only care about .sh scripts? There are also reindex_hash.sql and pg_largeobject.sql in src/bin/pg_upgrade/version.c with instructions.
How should we handle them?
-- 
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
--------------FDDCE286788734CB28DE690D--