Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0axx-006XrR-3e for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Nov 2023 05:19:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r0axv-00G7F4-BU for pgsql-bugs@arkaria.postgresql.org; Wed, 08 Nov 2023 05:18:59 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0axt-00G7Eu-NA for pgsql-bugs@lists.postgresql.org; Wed, 08 Nov 2023 05:18:59 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0axp-005IDU-Cf for pgsql-bugs@lists.postgresql.org; Wed, 08 Nov 2023 05:18:56 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id D33D45C01C8; Wed, 8 Nov 2023 00:18:50 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 08 Nov 2023 00:18:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:cc:content-type: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=fm3; t=1699420730; x=1699507130; bh=KQ u40WRxgB9xGaPNQDv9gxEx9o5edIUA475VcFe7yxw=; b=ItpG25V60PGcfS5E9A wohG9cenueGlWLnxApHgjEo40ZKabLIlKUmwG6BSg01KfS6SrahI9ILr5FZyt3xY FteetkjAEwZETWcTsAlGdo8iT8ytm25FlO2hOCMq68XbnU100mSsuf/XvrPTFag4 1y03Z9qaP8az3EJlUCSIygEeAgx03zJjFVrBq+8kbrSeo8D1+uucR+NRynkx29Cd YgNIn/4YMyal0ssQkZfxphpx/x0V0eg3L2I7v4f0fQM8iMst3gZ+X3WxxbkSLp52 LwpwHr8mxgnUIp+K4ppH5R6pcDG9XjoAR9zJoItfKqP0bSZTWclTYVDv7DvheiBL CuSw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type: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=fm3; t=1699420730; x=1699507130; bh=KQu40WRxgB9xG aPNQDv9gxEx9o5edIUA475VcFe7yxw=; b=c+4KFYKfUdMkPfdKX5n9mtlBp6Cxb fDERd5JS74dqemKQMXJMVYwQhEe+lRaq4L4beh3Syv1CsHMk0SYWygx3ZoxczN8F i8ThLiK/zYO2rUO9MGtT/T44GfSu2BTn9o63kUBqVV2joy+AEHUshgCc2ww2ygPx 97q+/mXzz5US1FxSvBQsE1RnynnoelNXXJTrSA1+uefQnzPqNQWi6St9N8tDZga9 D8grcoV30hBcIHm7+yChoaMCAHr/vAKX2TQVFx3k046S4/aOhYCExp9glkMkpVcC DqizWb5BnVSWNd+c2R0BkifXYARkbJwBkSruUwGaLYOtCF9/OFJF3SsYw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddukedgkedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvvefukfhfgggtuggjsehgtderredt tddvnecuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesph grqhhuihgvrhdrgiihiieqnecuggftrfgrthhtvghrnhepteelieefudffhffhtdetleeg geegfffhkeeuveetiefgudduvedutefggeeivdejnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiih ii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Nov 2023 00:18:47 -0500 (EST) Date: Wed, 8 Nov 2023 14:18:33 +0900 From: Michael Paquier To: Alexander Lakhin Cc: shihao zhong , Tom Lane , Tomas Vondra , pgsql-bugs@lists.postgresql.org, Masahiko Sawada Subject: Re: BUG #17969: Assert failed in bloom_init() when false_positive_rate = 0.25 Message-ID: References: <17969-a6c54de48026d694@postgresql.org> <836412.1686502986@sss.pgh.pa.us> <2322240.1686882232@sss.pgh.pa.us> <5540898f-706c-f399-2797-9e8fa58a5d81@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="EtfhnVKoQOBzAZnG" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --EtfhnVKoQOBzAZnG Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Oct 24, 2023 at 04:00:00PM +0300, Alexander Lakhin wrote: > I had started this discussion with the same question, but Tom Lane proposed > to reformulate the Assert [1] and I agree that it's for good. > Index attribute options are checked when an index created, but then > attoptions can be changed in pg_attribute, for example. I mean that such > a check makes sense because there is an intermediate level between setting > the option and using it. This was registered in the CF, so I've looked at what you have here. As an expected percentage, enlarging the check as suggested is OK by me, so I've applied and backpatched the change. It's indeed surprising that we would check that on the first insert rather than enforcing a check at index creation because we know that it would be incompatible, but we cannot cross-check that in the individual reloption parsing, which is what is used when defining an index. This could be achieved with a post-parsing callback triggered once all the options are parsed and individually validated, at least it would be cleaner. Not backpatchable, but enforceable even if an index build is skipped. -- Michael --EtfhnVKoQOBzAZnG Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmVLGikACgkQnvQgOdby QH0faw//SEkasHTCpLpzQ3tlSBDn9zeghj7kXwuHgpnB42YFMle3whXZ0cel5wob b3ELOiwiZZwF8lKk++OogzfnOa2Tbuei0Nq3WovQ8Em22HlcQ52GT7QTFK72UP+r NDouIcpSt3qzmU785/Hs+4uSV7o1R57OxOwfKc+Vi94hoY7VoVMs4uEFKyQ9l/0Y 9pt8bCt5KhITaZT64XhNUx2X1VttHDD5kpPTYEoQPZY1Rmgdzh5czu/qSTQvqd2w m6b/FJCb6lr+CQscuyfBLwrbfb72+LdZODe+J7wHBOZs76n6JaVQnMBD8CpJToyB VIwteH9F/lbnJqM24XwzOKYQEDHc/MLbVxJTUaw62xLUe298kFlfOis2qz7Hc06b 5zI9VCsOdTST6ekHugtWqGlk2YcQscY5MfmLL5kDmgwqOUwK3EWq/Eoikha3I/w+ UVepi03x5MsfcdoduKmmUMPfAplPQmOBRqsxd23KpgB/d2VJyZ6g5Syzc2lq1SIC SH7I3TLbOmNDbQS4UQYZ5f0Whzsy/svN7UANCRaE0i6iSvGnOvoocibIDVjG7KSu 8EJ2zbfAOgR6oty0kpcn2yS2IFHSWL+R7cAjrZ51wcRxswv5liL6J9wy9xiXjEVI fizDGG7xnQKDd2RimH2ZImL2VivwOa1z+lP7FmHZru2UQvGAXkY= =Nsu2 -----END PGP SIGNATURE----- --EtfhnVKoQOBzAZnG--