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 1nrEke-0006eq-AY for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 08:09:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nrEkd-0005VO-4P for pgsql-hackers@arkaria.postgresql.org; Wed, 18 May 2022 08:09:47 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrEkc-0005UM-8m for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 08:09:46 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrEkZ-0002MG-HL for pgsql-hackers@lists.postgresql.org; Wed, 18 May 2022 08:09:45 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 463BB5C01AE; Wed, 18 May 2022 04:09:42 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 18 May 2022 04:09:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1652861382; x=1652947782; bh=C W8ewhtcNfLdstbqyzmNPu9D7m2GcejTUt44RoWzCpk=; b=wcZgS26S5VgNZaqq7 Qwc6++4WgsQVUKptpb+5W9IpY7yKLbb8QMhFzTwhn9ovtxlk/udkoRn129DUaT3W toGbRtdBKlJU9tZaB40C4Arg2GcbVckHpH341QT4lu5OCNSc2mFo5hPAPV9o5oek UibEqvBDj6tqtfzuFaxaeQZU8Sr0OvWR9I1wvN3pEkYgErtFwB1rzjNi5JMs5k0i MQljMqfDU1N2hmEK0FZBlRiDgWfqYN/PFVtkTSghVQlmK0bGfeg7k1Z154jzSzJB fNTaPGZcD6/MbxtuSZrdKpXY4dBmGgL2fP/WIp3RkTdAINXnaOwLsJzgTAXcg2Y3 6Lilg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrheekgdduvdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheptehlvhgr rhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh eqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffhjeejhffgieeuueekjeek fffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrphhrihhsvggusgdrtghomh enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrlhhv hhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 May 2022 04:09:41 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 1BBDA2A2E4D; Wed, 18 May 2022 10:10:08 +0200 (CEST) Date: Wed, 18 May 2022 10:10:08 +0200 From: Alvaro Herrera To: Nikolay Shaplov Cc: Andres Freund , pgsql-hackers@lists.postgresql.org, Michael Paquier , Amit Langote Subject: Re: [PATCH] New [relation] option engine Message-ID: <202205180810.fx2gct2x47gd@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <3242859.cHiyl0VpJ2@thinkpad-pgpro> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk forbid_realloc is only tested in an assert. There needs to be an "if" test for it somewhere (suppose some extension author uses this API and only runs it in assert-disabled environment; they'll never know they made a mistake). But do we really need this option? Why do we need a hardcoded limit in the number of options? In allocateOptionsSpecSet there's a new error message with a typo "grater" which should be "greater". But I think the message is confusingly worded. Maybe a better wording is "the value of parameter XXX may not be greater than YYY". -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/