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 1shcjA-005Mro-Ba for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Aug 2024 22:25:52 +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 1shcj8-0007mg-C3 for pgsql-hackers@arkaria.postgresql.org; Fri, 23 Aug 2024 22:25:50 +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 1shcj7-0007mS-Ng for pgsql-hackers@lists.postgresql.org; Fri, 23 Aug 2024 22:25:50 +0000 Received: from fout8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1shcj3-001B6q-FF for pgsql-hackers@postgresql.org; Fri, 23 Aug 2024 22:25:49 +0000 Received: from phl-compute-01.internal (phl-compute-01.nyi.internal [10.202.2.41]) by mailfout.nyi.internal (Postfix) with ESMTP id 5E6F7138FF7A; Fri, 23 Aug 2024 18:25:44 -0400 (EDT) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-01.internal (MEProxy); Fri, 23 Aug 2024 18:25:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1724451944; x= 1724538344; bh=83N3iS07x96sxn0g+j+kFUPiK1Pwz5cjBTgFykqUNOI=; b=J i07kWWDlrY624THSGAv0SmHXSVJ+/BJa/scv9kWFW3d5+z/WdnXOcHPLr3KvThmX YT+ONBMK1tEZtka0eQR7bx8a6imNLrx0Bob/9xTJH7XyT/cQhO/xIfzSg1yUoCgZ WY94rwByXgtGfAbbMEfSo2dx3iO/EA7uHd/pBf6ldRQHopkhJuUfi4clHA+JpTDq PeBgjgflWOoLgsv4AMRY6i6pOzCFE6S+QbFtjxuzwEK1hUgkchGldeMx28R0QVxS sZdCXuvVbAmEI6kiaCRfOL9GAZEBQbQDqa2SQDGOrKJsmHveuIBinmwk19l85fJR aojeHz458B+E7ywBZo3ww== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddruddvfedguddtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddtjeen ucfhrhhomheptehlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlhhvhh drnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepvdektdffudfftdffffehfffh jeejhffgieeuueekjeekfffgudffhfduffffueevnecuffhomhgrihhnpegvnhhtvghrph hrihhsvggusgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgr ihhlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgpdhnsggprh gtphhtthhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehorhhlohhvmhhg sehgmhgrihhlrdgtohhmpdhrtghpthhtohepmhhitghhrggvlhesphgrqhhuihgvrhdrgi ihiidprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdr ohhrghdprhgtphhtthhopehtghhlsehsshhsrdhpghhhrdhprgdruhhs X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 23 Aug 2024 18:25:43 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1724451941; bh=4KeihpAWWnw9/IeJcOGDERga4OmPM0hkeA33XA+s6DA=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=azmmxe2woTju7V0x3OI6pquWBjjw4XVIeUdG9qOOKWwkyQRz9bUxcnrOqszgI+m8t l5f8CAvb5VdxNiRrApuIZy9MVvkVtNiTyNOe7cla1QvqpGlphXLQKYNNC35tC9kvZj R+tqwJm0zfWtXXtG2PZ8p147VE663zVbrw7fCxNyAU4f9R0cdXNPUMtmztb7888zdF RawwQnQ+3bLVTs6X645O3MntIeEvvLOEGSLbGrPzxX83ZKOQkzHAFIem8KFYdOa3iG 4W/YSQc7UFW1cVO2uQJhxjxjHjP1lfCQzd9PMzHMbjf+MfY4wO2I0kksxAo7B/iJYT 0ktAwinlskeWw== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 3AFFCE9; Fri, 23 Aug 2024 18:25:41 -0400 (-04) Date: Fri, 23 Aug 2024 18:25:41 -0400 From: Alvaro Herrera To: Michael Paquier Cc: Tom Lane , Maxim Orlov , pgsql-hackers Subject: Re: Test 041_checkpoint_at_promote.pl faild in installcheck due to missing injection_points Message-ID: <202408232225.y7hnnrinboo2@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024-Aug-23, Michael Paquier wrote: > On Tue, Aug 20, 2024 at 12:30:35PM -0400, Alvaro Herrera wrote: > > Yeah, I like this option. Injection points require to be explicitly > > enabled in configure, so skipping that test when injection_points can't > > be found seems reasonable. > > My apologies for the delay in doing something here. > > The simplest thing would be to scan pg_available_extensions after the > first node is started, like in the attached. What do you think? Hmm, I think you could test whether "--enable-injection-points" is in the pg_config output in $node->config_data('--configure'). You don't need to have started the node for that. > > This also suggests that EXTRA_INSTALL should have injection_points only > > when the option is enabled. > > If the switch is disabled, the path is just ignored, so I don't see > any harm in keeping it listed all the time. Okay. > > I've been curious about what exactly does this Makefile line > > export enable_injection_points enable_injection_points > > achieve. > > Without this line, the TAP tests would not be able to know if > injection points are enabled or not, no? Well, it is true that we > could also do something like a scan of pg_config.h in the installation > path, but this is consistent with what ./configure uses. Right, I figured out afterwards that what that does is export the make-level variable as an environment variable. -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/