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 1gjC2j-00016n-IB for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jan 2019 23:53:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjC2i-0002ez-69 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Jan 2019 23:53:20 +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 1gjC2h-0002es-VQ for pgsql-hackers@lists.postgresql.org; Mon, 14 Jan 2019 23:53:20 +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 1gjC2f-0004AM-NT for pgsql-hackers@postgresql.org; Mon, 14 Jan 2019 23:53:19 +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 x0ENr2M7030008; Mon, 14 Jan 2019 18:53:02 -0500 From: Tom Lane To: Stephen Frost cc: Andres Freund , Simon Riggs , Robert Haas , Konstantin Knizhnik , Michael Paquier , Alvaro Herrera , Christoph Berg , Thomas Munro , Peter Eisentraut , PostgreSQL Hackers Subject: Re: [HACKERS] Surjective functional indexes In-reply-to: <20190114234617.GW2528@tamriel.snowman.net> References: <20180511033227.vvgm3yi5xngro2hp@alap3.anarazel.de> <20180511143737.rvogcsxdksrhyyj5@alap3.anarazel.de> <25975.1541618754@sss.pgh.pa.us> <20190114223409.3tcvejfhlvbucrv5@alap3.anarazel.de> <28044.1547507004@sss.pgh.pa.us> <20190114230918.fhp6wktbhg6pjnyw@alap3.anarazel.de> <28651.1547507948@sss.pgh.pa.us> <20190114234617.GW2528@tamriel.snowman.net> Comments: In-reply-to Stephen Frost message dated "Mon, 14 Jan 2019 18:46:18 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30006.1547509982.1@sss.pgh.pa.us> Date: Mon, 14 Jan 2019 18:53:02 -0500 Message-ID: <30007.1547509982@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Stephen Frost writes: > * Tom Lane (tgl@sss.pgh.pa.us) wrote: >> After a few minutes' more thought, I think that the most attractive >> option is to leave v11 alone and do a full revert in HEAD. In this >> way, if anyone's attached "recheck_on_update" options to their indexes, >> it'll continue to work^H^H^H^Hdo nothing in v11, though they won't be >> able to migrate to v12 till they remove the options. That way we >> aren't bound to the questionable design and naming of that storage >> option if/when we try this again. > So the plan is to add a check into pg_upgrade to complain if it comes > across any cases where recheck_on_update is set during its pre-flight > checks..? It wasn't my plan particularly. I think the number of databases with that option set is probably negligible, not least because it was on-by-default during its short lifespan. So there really has never been a point where someone would have had a reason to turn it on explicitly. Now if somebody else is excited enough to add such logic to pg_upgrade, I wouldn't stand in their way. But I suspect just doing the revert is already going to be painful enough :-( > What if v12 sees "recheck_on_update='false'", as a v11 > pg_dump might output today? It'll complain that that's an unknown option. regards, tom lane