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 1iB6bs-0006iK-TB for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Sep 2019 00:17:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iB6br-0006o4-Qd for pgsql-hackers@arkaria.postgresql.org; Fri, 20 Sep 2019 00:17:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iB6bq-0006nd-2W for pgsql-hackers@lists.postgresql.org; Fri, 20 Sep 2019 00:17:15 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iB6bm-00073r-6k for pgsql-hackers@lists.postgresql.org; Fri, 20 Sep 2019 00:17:13 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id F004849D; Thu, 19 Sep 2019 20:17:05 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 19 Sep 2019 20:17:06 -0400 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=fm2; bh=k+NPkz1q130dRIQ4NCMqIh9b2ts FQYZVI9rlnWjwWzU=; b=T9JjguWnfU3uiqH2X0HCdbNFQU/6MQESzZ4n2ttqqSS i+xvaYuUIAaJW3N+lR2BZzxm3AMtYzJaufJkZQC891r4BlzGJNkyeLqw57oS97Gd KL07QEBz//llEfMC690JDIvjdhJu/Nfd5pC7Fj7uW4e0DGwgXz7VWPYmOxBpwUyw vR13k96XNBhLwnsaenSg4s88rLdKT2NBVn03VWLw3KFyFMzcWDVpmXdCbBUsULYL UfZ89jm3OPOA573TLEm50eiGBKKn5/Rl92KpufVEjHeA0/GdVCpwhKKWGxuY0pRa aI9GEKtb1nIA0hY27VAe8FIy/WletgwxnVTTxUygorg== 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=fm3; bh=k+NPkz 1q130dRIQ4NCMqIh9b2tsFQYZVI9rlnWjwWzU=; b=Lk9EoAfbeAX63e1gdLcgyj U+y7veaqK7DWg3/2VWkdRnnPofolD0jZ//2Y1hnyMHMRgjmZ5Kl93TS1IKWbcgy7 +ShRJNKk5eLJww49/A0zjEyynsQA8VMBazulKw5UoaEQGbMLJ7/y5FfbeuY+lZBP EyxVIlOX+wipdaMC/icTFEzfnp0Fsmo2cJ0F6LKFwxWVR9vfQ84rA0Jn9PZamr1N jI9IVIOg2CztAZ2bbB04bacHmBJjwImsL3Dr4Hwo9tJG1ythw1E7E2rDlrkBHPfc NegDe79A/2ubK6Uu6wR248U84g+0QMkQPACRUESNPvYjbTMYFskPSFiqsHGD77sQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrvddugdefvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvffukfhfgggtuggjsehgtderredttddv necuhfhrohhmpefoihgthhgrvghlucfrrghquhhivghruceomhhitghhrggvlhesphgrqh huihgvrhdrgiihiieqnecukfhppeduuddurddutddvrddukedtrddukeehnecurfgrrhgr mhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiiinecuvehluh hsthgvrhfuihiivgeptd X-ME-Proxy: Received: from paquier.xyz (ee0822lan1.rev.em-net.ne.jp [111.102.180.185]) by mail.messagingengine.com (Postfix) with ESMTPA id E578280061; Thu, 19 Sep 2019 20:17:01 -0400 (EDT) Date: Fri, 20 Sep 2019 09:16:58 +0900 From: Michael Paquier To: Nikolay Shaplov Cc: Thomas Munro , Dent John , PostgreSQL Hackers , Alvaro Herrera , Tom Lane , Robert Haas Subject: Re: [PATCH] src/test/modules/dummy_index -- way to test reloptions from inside of access method Message-ID: <20190920001658.GA1844@paquier.xyz> References: <17071942.m9zZutALE6@x200m> <20190919083203.GC21144@paquier.xyz> <6059120.LlfbHtIvrV@x200m> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <6059120.LlfbHtIvrV@x200m> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 19, 2019 at 02:13:23PM +0300, Nikolay Shaplov wrote: > What a good catch! dummy_index already proved to be useful ;-) Yes, the testing around custom reloptions is rather poor now, so this module has value. I still don't like much its shape though, so I began hacking on it for integration, and I wanted to get that part down in this CF :) There may be other issues, but let's sort out that later if anything shows up. > Yes I think AccessExclusiveLock is quite good default I think. Especially= in=20 > the case when these options are not really used in real world ;-) I guess so, but with table AMs introduced in 12, I would suspect that we are going to have much more use cases popping out, and that these use cases would be very happy to have the possibility to lower the lock level needed to set a custom reloption. I would like to get that fixed and back-patched separately. As it is not especially clear for everybody here in a thread dedicated to a test module that we are discussing about a backend-side bug, I am going to spawn a new thread with a proper patch. Perhaps I missed something as well, so it would be good to get more input on that. > As you know I have plans for rewriting options engine and there would be = same=20 > options code both for core Access Methods and for options for AM from=20 > extensions. So there would be API for setting lockmode... > But the way it is going right now, I am not sure it will reviewed to reac= h=20 > 13... Well, another thing would be to extend the existing routines so as they take an extra argument to be able to enforce the lockmode, which is something that can be done without a large rewrite of the whole facility, and the change is less invasive so it would have better chances to get into core. I don't mind changing those APIs on HEAD by the way as long as the breakage involves a clean compilation failure and I don't think they are the most popular extension APIs ever. Perhaps others don't have the same line of thoughts, but let's see. -- Michael --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAl2EGnoACgkQnvQgOdby QH1c0A//Q3AcW9G6WaIbsg6yt+qwfOFTuUcmPtvnfQma9IdXGzDF0QDUqdWTAoA7 W76IdZNsqWINzrHcSCI9hFwm1amFGNJ365tWPXchxyEI18IS6BdDIbWLq+uDZOkN A9gxJPxLIOKGDTKWHauMePkMwLE055PfgmsKPiQwQXNMH2SM021kb34sMUJ+UoLC U5V3G0E66JXj4pK2ZD31cK7sYRvXk3NNG2UL2MAjNhnv9+SVe9tQsf1a0o0dv39r PtO9f0cXPN+bBjVYc0xYuJBqX6mcKqzQAqEDN7ChvXU/h90Xlw+7ayGIPHKl1kLG R/nMr87/KqUz3dv35V4oxXunZRxjG3KQOihTkftB6npEQNO4BWQPDRH2I5qBV+uB JkaTEHU42XbxtCjRL7Wz4k34feVmnLcNW87v4tYtk65LCznrdmm8KXAqliOiM+by 3u3ED8K4t1wOSmwg2XSSxArA8AmCTIkVNRKS4MLNpGP8DqQTJwu/R/LMkazwksel Y3CbOd45nr3KNS8A/Tf2QQsC1s1RO/YL2RB57aS9iVzzpMizRfjvcZN4DXZKmja6 53CA93hL5EHd6ov2DZmea0r1rQPQu5p+z968P9RiSUvjDKfDsDpTH5EGmLhci16f 5SRGYNl8ywFcAe0YPemKZFHgFSHOJoZyu8Sk1glphrBWd1H8gdQ= =9JAn -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--