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 1mcivw-0004n4-K6 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Oct 2021 06:49:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mcivv-00045U-9n for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Oct 2021 06:49:11 +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 1mcivt-00045L-Hg for pgsql-hackers@lists.postgresql.org; Tue, 19 Oct 2021 06:49:11 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mcivm-0007WW-7J for pgsql-hackers@postgresql.org; Tue, 19 Oct 2021 06:49:09 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DE11A5C00EE; Tue, 19 Oct 2021 02:48:58 -0400 (EDT) Received: from imap45 ([10.202.2.95]) by compute6.internal (MEProxy); Tue, 19 Oct 2021 02:48:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zr40.nl; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm1; bh=2oJBE+OYn/kmetapMdKqd2g+4ETmhTN iyoXeAOVTdZE=; b=khecshEdh78MYXfT4ab4ejfWsOAxm5NcwGML/wnjs2Yq5RP M5FMndTjUKTN08zpnTNrvYOhrnDVlSmd0Bx1+5gH6zlV8aFW2Rvjc7/aM7pCMCCo bKy30SUXnmwyOrr6nptvEUbqMRLCj68/Ds5QpH6X0fvftyXWcz5NLqCxGnhEUa4v 92nh5ulEv26RS7wnZoLhdQ3RFfhTx8LWnEY3a5uZmgQ9CEjJhpzWtPsekOfUdOJ4 Navv1+YGbrg4+vQ/+ir/SskQJ374exgLK2cJmqHXYCyIBgNaB/Yaf9Fz5+i0WEyF qBmPBNgJCU2sc+ZxR87dUoI68NMSmLeUIaelIMg== 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:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=2oJBE+ OYn/kmetapMdKqd2g+4ETmhTNiyoXeAOVTdZE=; b=RJdcaLOYrXcqq3115fE7AE WYY0B38iqQ+QUUi19lzDfvKlvGNpE/KTmY/YRGgwiM5NI/vnZAnADMnVW/MjTH5l M/7qMZ3Gd+Er+BlKg4iE2cmnmGmRKg5wUkd0gw6PsgcETySftClUUZWTSI2yKol3 U5G9wdoFM8hnUPPHzJyZtLNQMXMN8SaqMH3Ha8pbeYhnsr0MewTdAY6nVnVbgo4t Vf1Qe6NsDLzPrTLrX8jCnY61uBtvWSDP7i1E3s33AjeLeDDcQKjEr8lqQD1xAFVO Fu1gA3L0qrK9a3T4ZfcQo9o5spbCYtbCDVOdioA3Asv7XLu5ULUPGMtw7bHL+H/A == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrvddvuddguddutdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfofgr thhthhhijhhsuchvrghnucguvghrucgglhgvuhhtvghnfdcuoehpohhsthhgrhgvshhqlh esiihrgedtrdhnlheqnecuggftrfgrthhtvghrnhepieejheevgeffgfduieeuffefkeei tdfhteduueetkedtleeutdetheegkeduieehnecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepphhoshhtghhrvghsqhhlseiirhegtddrnhhl X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 1915724A006F; Tue, 19 Oct 2021 02:48:57 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1369-gd055fb5e7c-fm-20211018.002-gd055fb5e Mime-Version: 1.0 Message-Id: <1ec02758-652e-48fa-afbf-c1d5ed5f06e2@www.fastmail.com> In-Reply-To: References: <17220-15d684c6c2171a83@postgresql.org> <9b91d241-4d05-e5a4-67da-5b8acdb9a2f1@postgresfriends.org> <678CF71A-934B-4FD0-BF63-E41D795E41C9@amazon.com> Date: Tue, 19 Oct 2021 08:48:05 +0200 From: "Matthijs van der Vleuten" To: "Michael Paquier" , "Bossart, Nathan" Cc: "Dilip Kumar" , "Vik Fearing" , "Alexander Korotkov" , "pgsql-hackers@postgresql.org" , "Robert Haas" Subject: Re: BUG #17220: ALTER INDEX ALTER COLUMN SET (..) with an optionless opclass makes index and table unusable Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, Oct 18, 2021, at 09:46, Michael Paquier wrote: > On Thu, Oct 14, 2021 at 11:07:21AM +0900, Michael Paquier wrote: > Attached is the patch I am finishing with, that should go down to > v13 (this is going to conflict on REL_13_STABLE, for sure). > > Thoughts? The test case doesn't seem entirely correct to me? The index being dropped (btree_tall_tbl_idx2) doesn't exist. Also, I don't believe this tests the case of dropping the index when it previously has been altered in this way.