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 1o8vum-0000gb-6X for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jul 2022 03:41:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1o8vuk-0004iO-Ak for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Jul 2022 03:41:22 +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 1o8vuj-0004iF-Iu for pgsql-bugs@lists.postgresql.org; Wed, 06 Jul 2022 03:41:22 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o8vug-00028w-Aj for pgsql-bugs@lists.postgresql.org; Wed, 06 Jul 2022 03:41:21 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id DB8385C00BD; Tue, 5 Jul 2022 23:41:15 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 05 Jul 2022 23:41:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1657078875; x=1657165275; bh=lS4oYY8OcQ Q2g35k6dddbHU3NMyO8a9lGtL4n0WP8Y4=; b=dOTOGth3svqG1QlZ/e/ITGzjGJ R3YGRWq5ByQdfc2N4CBaVNoYJC2P6LxOz1GH/eRJjZ1jSGFkehAJP+AijFCGJJmC pKHlaIjl4IlB9Ve+Q0gjnZg0joW9IwSB5z5fC+QjQ3qTGSnJTg2uXQkI9VYwLPgU NiJE0zcPnAulcHssl4FZbHZeIsaOGaPBgpZQOTSQkxZcWxE3NKig84XPnhvQjRSn yEX6SAjvFCX2C/36rqv9LAT/H7BYG+LwTFhlblk9eEyZvwI5WIHHoKK35k1h0kpt +pJVpUUG1DFzK7yOfIGuLDnvIeS9R/uTRY11+9HgnjBeBNyTr+NZprS/v01w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1657078875; x=1657165275; bh=lS4oYY8OcQQ2g35k6dddbHU3NMyO 8a9lGtL4n0WP8Y4=; b=gb8Y+1C2vAgsO6hnavOYXT4Huy/J9tOkimqdZU07UNqP +f3sy32aS3bUUmHVtRr2pyWhZMtwAjf5QCcOjvL+jk6e9FHAGujOsUtiKw/RGq+G C2tnotHw0zfVJNXU+cNy5+iDGIvWlbxEhb4XXcXbwcucW0NfI/ADUh4n+y+8slSb Y95hXhb1HZbAkjcJ0qKnPJid//2ym85u85/iX4YM33uCyoUWyso5BR+79IBFcpzV oPsr92vWvk4VL+aUFBaTiZMKFZTYRMqOg6zqOOHoQEkzXmsoutj9DGXgXR56YRq1 yeR1uOhDT4FZGKsXL1e2kq2quxbGtIvKtUYiF/4iJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudeivddgjeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdljedtmdenucfjughrpeffhf fvvefukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpefoihgthhgrvghlucfrrghq uhhivghruceomhhitghhrggvlhesphgrqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvg hrnhepteelieefudffhffhtdetleeggeegfffhkeeuveetiefgudduvedutefggeeivdej necuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepmhhitg hhrggvlhesphgrqhhuihgvrhdrgiihii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 5 Jul 2022 23:41:13 -0400 (EDT) Date: Wed, 6 Jul 2022 12:41:07 +0900 From: Michael Paquier To: Tom Lane Cc: d.koval@postgrespro.ru, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #17539: Assert after CREATE OPERATOR CLASS command Message-ID: References: <17539-37e89c604ebc0e02@postgresql.org> <2029909.1657060342@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="oxc/ZufV26mDgucj" Content-Disposition: inline In-Reply-To: <2029909.1657060342@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --oxc/ZufV26mDgucj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 05, 2022 at 06:32:22PM -0400, Tom Lane wrote: > This is a broken operator class definition (it's missing most of the > expected operators for a btree opclass). It's not exactly surprising > that it causes problems. I have zero desire to try to make the system > bulletproof against incorrectly-made opclasses. Agreed. But isn't the proposal of Dmitry to switch the assertion to an error a good thing though? It is not particularly user-friendly to just throw an assertion if we could warn at the early stages that something's wrong. -- Michael --oxc/ZufV26mDgucj Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmLFBFMACgkQnvQgOdby QH3uRxAAk/Xego8XpD3nU3vx0IXUPvnLZowapTak6Aqd2MhrT4+jg9DBBUVV8ZGQ dTa5GPCvWs2MTY2rhajtGPUnsgZLEkk41E0bV5T0cikaWFxhxPeX2hB4VDtJmUkK UxgZXB9v/Fag6+n2qrRi9MVbueXLULPMIQEkTISY8yV6QNJNiNPod47oWf2+2Gqn h03sSCyIJjNLlZj1XbRoU+fycw3EGc21KJMpkslNNB3XNA6VbEEEqH+jUICKB70Q E5OQaVZTAuGwOBYnOekazz1DfWOgrSmZhtzUAUUMkotyP5NAbhIqxgHfwV1jnJOX kLoCjExChz+NSUMjjtAwZl417LHQG5a+bk3ZtLBwSXfOUsXRHDWZHb7rnk2G+hZg rE4ZYGzzvQSgEEtmb4rrFk2iCT4LQAnOnZuMHCokdubjEQWPpeQq+pQDBrnusRL3 0N4C50807XSBe+ZR5xE5m0GpGXtZl9v0y5NU/mIlqmJX5UDOHUMJuQSZxH9T2sKf 9EOOK0fB7E5i91iZ6dpssw/3yJc7rI2ilIDSxqzUwiZgSO5oiVoTO35v1OP0jEFM bxL9btOCTPdm5hoYhy/e9WveMkSgtSlxoPXFqm8nCvjWgX2Y696HzHowFULwRst5 rOBmn3lRVyuZPvT2ohdCT2FuNb65ZxFsfX7XFLFa3gPzPaJSiHA= =NGpT -----END PGP SIGNATURE----- --oxc/ZufV26mDgucj--