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 1gwL3t-00060o-DW for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Feb 2019 06:08:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gwL3r-000578-SA for pgsql-hackers@arkaria.postgresql.org; Wed, 20 Feb 2019 06:08:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwL3r-0004yK-FX for pgsql-hackers@lists.postgresql.org; Wed, 20 Feb 2019 06:08:51 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwL3o-0004oY-LE for pgsql-hackers@lists.postgresql.org; Wed, 20 Feb 2019 06:08:50 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id BFB912221C; Wed, 20 Feb 2019 01:08:47 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Wed, 20 Feb 2019 01:08:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=eFZTxnZOEjWvHIDuvGY1U89l1rc zMOzNGaq5giloD8Y=; b=U9RAsFAPhpIScvu6hFJY2Rejbm0OMUjml7NCQ6tVXBx 0XSaYkkLJkBWrhotUEdosj141ANQxTFvGNaCHSbh97hF8OxSvJ/nBnZ8JhV1p0Zf iH/AHQLU+SBLh9OZyAIhBX97h26L4/+T1vczUhKhZPHQHB46nRMXpuUIg7RLWu5E K3DEu7RQxbOfKuYamsqsrNCSHBcbJDg91WyVeCYev31VRntiLq0C4PEKl+efqO7l yOlwAWUXTyqSDxh39RLlqNB5EjW6ulytfMI6ho2ib0/bXfilCu/McDUW8KasH+l6 0bB7aTu/HXHupAs0nQcwKJvXoYSbgwoGTY9MC28wzSg== 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=fm2; bh=eFZTxn ZOEjWvHIDuvGY1U89l1rczMOzNGaq5giloD8Y=; b=mMzjXvGRl/mTYjWPUx6NTE YSLWxYrYX0beYlXVs8yMgYqWgw+EXNKoUNbVA77LVgkQBIJEOw6hAxmxvIPmDQXB 6QNQ84HMwkVc9SnJQXi1eM89HUgCCMghc/1uvSD3lXzeEEe3cOfL1IYMkisNMJvg S3RQurFcFOP/JYBDBmhBeueNacwQSE3J7CyK12g2KfebchUxp42PjmL4q12f2Vru laEzRl599d9ynLJreJBcvpLC8uPvopxbAsAaFq9khYgnigt+q/3AObFS4kDJIslc 60bHEdeMuF/m6QRwRGJa5L1Xxbcybx9yuyh4Q4IvGy4KjkwnWMqxIIpswR8EPqVA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrtdehgdelgeculddtuddrgedtledrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne gfrhhlucfvnfffucdljedtmdenucfjughrpeffhffvuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucfkphepuddukedrvdeguddrvdehtddrudeiudenucfrrghr rghmpehmrghilhhfrhhomhepmhhitghhrggvlhesphgrqhhuihgvrhdrgiihiienucevlh hushhtvghrufhiiigvpedt X-ME-Proxy: Received: from paquier.xyz (mp76f1faa1.ap.nuro.jp [118.241.250.161]) by mail.messagingengine.com (Postfix) with ESMTPA id BCCA51030F; Wed, 20 Feb 2019 01:08:43 -0500 (EST) Date: Wed, 20 Feb 2019 15:08:32 +0900 From: Michael Paquier To: Nikolay Shaplov Cc: pgsql-hackers@lists.postgresql.org, Alvaro Herrera , Tom Lane , Robert Haas , Nikita Glukhov , "pgsql-hackers@postgresql.org" Subject: Re: [PATCH][PROPOSAL] Add enum releation option type Message-ID: <20190220060832.GI15532@paquier.xyz> References: <201901032112.xpqqwmumqml2@alvherre.pgsql> <1777585.CqHLqLDU7p@x200m> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="MRqhvNSJsMAynmoC" Content-Disposition: inline In-Reply-To: <1777585.CqHLqLDU7p@x200m> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MRqhvNSJsMAynmoC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jan 06, 2019 at 06:28:11PM +0300, Nikolay Shaplov wrote: > Actually I am not satisfied with it too... That is why I started that big= ger=20 > reloptions refactoring work. So for now I would offer to keep initializat= ion=20 > as it was for other types: in initialize_reloptions using [type]RelOpts[= ]=20 > arrays. And then I will offer patch that changes it for all types and rem= ove=20 > difference between biult-in reloptions and reloptions in extensions. Should this be switched as waiting on author or just marked as returned with feedback then? > 2.5 May be this src/test/modules dummy index is subject to another patch= =2E So=20 > I will start working on it right now, but we will do this work not depend= ent=20 > to any other patches. And just add there what we need when it is ready. I= =20 > would actually add there some code that checks all types of options, beca= use=20 > we actually never check that option value from reloptons successfully rea= ches=20 > extension code. I did this checks manually, when I wrote that bigger relo= ption=20 > patch, but there is no facilities to do regularly check is via test suit.= =20 > Creating dummy index will create such facilities. bloom is a user-facing extension, while src/test/modules are normally not installed (there is an exception for MSVC anyway..), so stressing add_enum_reloption in src/test/modules looks more appropriate to me, except if you can define an option which is useful for the user and is an enum. -- Michael --MRqhvNSJsMAynmoC Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAlxs7uAACgkQnvQgOdby QH128A//bCnfNcF4cXu+THxtUeh1HKNLjbeNsfj3MEaif9RciKSDjapjvKpk9ju1 zfTMnhi6JFBbjh9wRYFNKcgALyLm9zL8u0K3xFTHym6U6UsZIQUA3g7GwcxJW2Dz T8co5wE2IpVSvoIISyIw4Do4285CFAX1zZKiFJ9Bt6XjHS9p0I165gchbSD29I/J SO9EiEf2gMiEdydeFa7gZNzAlgYPmKGQF1iWpwD+CBqyWOh6GsCxdsN/dPX3Yrpf eDsRuQGk6qOCmG2QREYkZihyIrzk7nKR/yfgcvuR5nI5aWzgY5ShYy1IuRA4mxAZ T3mFh1qEsZnJElsfB0H/je1MXEj4G8BXdg5PrMUDtsopbYuxzy7jaTvWQV1ESTUN vzz3vlbz4XQLIZHl759gRr0Asj4Zwu738RwOG1EfWmw6AfdXdIpjgO8niHPvfW2Z CdJDfXaUD2mR1a+niV9tz79jOKLN/FYuyZPGdBxnAkZDgnkMLDEv6QQ8tvukCixM IqXEE9+JPA96cQCv7o7Y4IJHcW/8bARtrdb/v5XIygnEI3XkRYOKfnDk1L4I1SG8 EKUgnWaZApAdm84GfGWXI8WN5VHuQYu5Nv28ZoEMC93tcXNE6x8JyfNZ/ul7oowO o6tqF1LZWNWCafz7zfZ6ZpsyzUXMCWW+eo4b1o21IrYMjQ8+UlQ= =210l -----END PGP SIGNATURE----- --MRqhvNSJsMAynmoC--