Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYyUy-0006bm-14 for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Dec 2018 19:24:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gYyUw-0005Nl-MZ for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Dec 2018 19:24:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYyUw-0005Ne-FP for pgsql-hackers@lists.postgresql.org; Mon, 17 Dec 2018 19:24:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gYyUu-0005Ux-1Y for pgsql-hackers@lists.postgresql.org; Mon, 17 Dec 2018 19:24:14 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id wBHJO8xL029224; Mon, 17 Dec 2018 14:24:08 -0500 From: Tom Lane To: amul sul cc: Michael Paquier , PostgreSQL Hackers , Alexander Korotkov Subject: Re: ALTER INDEX ... ALTER COLUMN not present in dump In-reply-to: References: <20181122003147.GA3369@paquier.xyz> <154477492593.1386.13640101253353637283.pgcf@coridan.postgresql.org> <20181217051439.GG31474@paquier.xyz> <8776.1545024255@sss.pgh.pa.us> <20181217062425.GI31474@paquier.xyz> Comments: In-reply-to amul sul message dated "Mon, 17 Dec 2018 14:44:32 +0530" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29222.1545074648.1@sss.pgh.pa.us> Date: Mon, 17 Dec 2018 14:24:08 -0500 Message-ID: <29223.1545074648@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk amul sul writes: >> On Mon, Dec 17, 2018 at 11:54 AM Michael Paquier >>> So this settles the argument that we had better not do anything before >>> v11. Switching the dump code to use column numbers has not proved to be >>> complicated as only the query and some comments had to be tweaked. >>> Attached is an updated patch, and I am switching back the patch to >>> "Needs review" to have an extra pair of eyes look at that in case I >>> missed something. > I been through the patch -- looks good and does the expected job as > discussed. I eyeballed the patch, and it seems reasonable to me as well. The test case could perhaps be made more extensive (say, a multicolumn index with a mix of columns with and without stats targets) but I'm not sure that it's worth the trouble. regards, tom lane