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 1rh0rY-0098J7-5Z for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 05:27:45 +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 1rh0rW-004V5M-KV for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Mar 2024 05:27:43 +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 1rh0rU-004V5B-Tr for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 05:27:42 +0000 Received: from fhigh2-smtp.messagingengine.com ([103.168.172.153]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rh0rR-002fEE-D7 for pgsql-hackers@lists.postgresql.org; Mon, 04 Mar 2024 05:27:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 4E0EF1140097; Mon, 4 Mar 2024 00:27:34 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Mon, 04 Mar 2024 00:27:34 -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:subject :subject:to:to; s=fm1; t=1709530054; x=1709616454; bh=LI4JUTd+sI sXq/IZccLCiUUNBLDv/Row3C9opkmEGG4=; b=Kp/ASB9SL9iD4hMR2tNbVI7X3A Zh1qiO0Z5ie3dI5nbt5Zcg3d3R6HRALf0KZrQJs2+kdz4rqK3mofghm6QJ4IvJjF plpZ3Q/XDjfft1ByOGwN7vdSTjXUSd5DtCNvUAkyXXfs5D6KbBnfXvi6Ls4ANwIx ryDN7nV7aWlpxwu/9iRe5Ez+0+yx6539oYxSDy8MU3dihjdX5ej2fXF1wOrZ5D58 AUxY6F/YtiL4dczSR0eyyZ7mtXogqNiGUrzXpIH//gqxsViI/zU+ai42a/2gTea0 rCQtTTiBaRj3GZN5SGLJakB+4wZSptwBe9lZC1YT5N8gC8GcuZSmk0aGxOlQ== 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:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1709530054; x=1709616454; bh=LI4JUTd+sIsXq/IZccLCiUUNBLDv /Row3C9opkmEGG4=; b=AUMzR+lmpwWZe4g/vee1y63umMMowhzuKzUo5qjOt+Xb n+XgY2ti3tAAQ2D8DpH80tfV+bTiY5BJIb+J+e00ZCPLjPjPUH0yNTxcX/32IQo2 AgWZVLlzZM4djrEzXGUS3vj6W4Vp0qIMoQINvvgH35lQi4mRuqe0SeGPqcde1xlW fO0i5D4uIHgZIt7au3ooqhzi4XQtiuOvZBG287hMyCO5QdrQn7u0KbktMK8qrn6D a9nFaow4W7ko2FyIsETPFdIDKP2vDim2sB3PSqkMwSo+Qxwz7nszkVTHeu3D4frh WYJ+PVFc7EfV6rqtWEwI+UKZYRXMyyjlSnkzft8sRg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrheeigdekudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenfg hrlhcuvffnffculdejtddmnecujfgurhepfffhvfevuffkfhggtggujgesghdtreertddt vdenucfhrhhomhepofhitghhrggvlhcurfgrqhhuihgvrhcuoehmihgthhgrvghlsehprg hquhhivghrrdighiiiqeenucggtffrrghtthgvrhhnpeetleeifedufffhhfdtteelgeeg geffhfekueevteeigfduudevudetgfegiedvjeenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmihgthhgrvghlsehprghquhhivghrrdighiii X-ME-Proxy: Feedback-ID: i0fe9450f:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 4 Mar 2024 00:27:32 -0500 (EST) Date: Mon, 4 Mar 2024 14:27:22 +0900 From: Michael Paquier To: Jelte Fennema-Nio Cc: Bertrand Drouvot , "Andrey M. Borodin" , Postgres hackers , Ashutosh Bapat Subject: Re: Injection points: some tools to wait and wake Message-ID: References: <9F7DF199-11E0-47D3-B7AE-379EFC6109C2@yandex-team.ru> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="F+gcYZhoxFcSEyE9" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --F+gcYZhoxFcSEyE9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Mar 04, 2024 at 05:17:52AM +0100, Jelte Fennema-Nio wrote: > I noticed this was committed, and took a quick look. It sounds very > useful for testing Citus to be able to use injection points too, but I > noticed this code is included in src/test/modules. It sounds like that > location will make it somewhat hard to install. If that's indeed the > case, would it be possible to move it to contrib instead? One problem with installing that in contrib/ is that it would require more maintenance as a stable and "released" module. The aim of this module is to be more flexible than that, so as it is possible to extend it at will even in the back branches to be able to implement features that could help with tests that we'd want to implement in stable branches. I have mentioned that on a separate thread, but adding more extension maintenance burden while implementing complex tests does not sound like a good idea for me in the long-run. Perhaps we could consider that as an exception in "contrib", or have a separate path for test modules we're OK to install (the calls had better be superuser-only if we do that). Another thing with the backend support of injection points is that you could implement your own extension within citus, able to do what you mimic this in-core module, and get inspiration from it. Duplication is never cool, I agree, though. -- Michael --F+gcYZhoxFcSEyE9 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAmXlW7kACgkQnvQgOdby QH2/8A/9EfVlmXBQDcH7eyJg2j4ihZwhwnr6jiAAud2Hj1AxpagBo1fDyebsPKYZ nLDAUbm8Q5WOZabiIrBASmNAiSP+oNtvTMWrF2qCbZINIiN7vE1kpJgta3HIP7F/ DHY+1Ajo2rGWxZ2silgkWGUQTWhD8M15ugU2OABr3J16C8bx5kM3hK9fCrlvsjbw Y4jsFhyKCX3adv89LHD4dB1aO8go8mP3COadSxqUAcZd7qW+aQJQCj9SdUyToS2D +ZtJwdooB+n2rvz5FOpJmZyWDAXQ/Ap6thGB/QW7gPu/NkiDj504Uq3x49EpF9mR CTcNkmnFeyOvvD/dRv9E4hn0bLyDL+Lr/KZfjb93CNSXkBMTIKDN7S5cssgVMq/b ax4H/9VfQWJI+Pgn4FDMihvQ+v3owxZWyVtxRHd/IxkvWXmy67V6QCxKe5szgmHg uRxRPsJljddDunoiNn15PY1B6OjQP9IUR68ZMQkRGVlJ846xmjseC6tUOQ8yljZx rRSy9tUOmMAJKE4JN9gcj9n3U5k6Kmbf5o1/fmPyyrEDyudKM0WNUGELUZRajmMP +Logk4g1ccpVO6+bFT+YThO9pjvyWRTsafjPIIbMGnjCsAm1k2p4IA7FikJ1fkPl 8awLuQ4Kd8kFYOmivS41xwkZgZcZjYkphko22hzpc9/AI44sYkM= =8dI8 -----END PGP SIGNATURE----- --F+gcYZhoxFcSEyE9--