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.96) (envelope-from ) id 1vT3xO-00C5Y2-0T for pgsql-committers@arkaria.postgresql.org; Tue, 09 Dec 2025 20:05:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vT3xL-006fSx-2U for pgsql-committers@arkaria.postgresql.org; Tue, 09 Dec 2025 20:05:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vT3xL-006fSn-1A for pgsql-committers@lists.postgresql.org; Tue, 09 Dec 2025 20:05:07 +0000 Received: from lahtoruutu.iki.fi ([2a0b:5c81:1c1::37]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vT3xI-003zMt-3C for pgsql-committers@lists.postgresql.org; Tue, 09 Dec 2025 20:05:06 +0000 Received: from [10.0.2.15] (unknown [130.41.208.2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange x25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: hlinnaka) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4dQqZT01j2z49Q86; Tue, 09 Dec 2025 22:04:48 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1765310690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0T6Tj5W+89+S0d+2ZX3uO2WKu21TbHxRZv8BdM9XSE8=; b=qodIsT8SYF/anVN2NYOBwaxN07u8rBQHirtHl0KVnRWn+EISA3pKJfanC/2J7+QRDzsxTI HwRSOg55KFEz2ck8jXPc/creyJLrnSCVBjk0sfcIQ2mXi+ktH/NoPuaGMQ6sptiBNtW66o XGtyFSTzSdrQ7uoE6o8VZlLoMwlmdk30lNWtr6KFGZpwGGfUQtT45t/3pqkAiIO1TAmBl+ Z/gxk8ywk4JWNFYIMjOlI7y4ODJuxqJb0kXqFMIeZD47AUeTAe4iMDrKWc3H1ZMtPmHUDf 3oBWZQUM9N18If65pup6EcQYkkCz0jSSu9DbIgRkpanKhhEv+OY3VI5j7QNsZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1765310690; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0T6Tj5W+89+S0d+2ZX3uO2WKu21TbHxRZv8BdM9XSE8=; b=LDbOMkJg5XCBxtRaPA5JSJem43v9Z6+dDhxp7lwO5CUtrczNxhvVyaRQBjk27UFeLMTEeI Vu/LTYyENP03g2AHL2Wznda/21RvPrOPE12dO4pgO+y40saReAFnh00VvvM/EWjLxYqDpk P//0sCLOdA30GpTcws8Yv9VXpusgVd9CPCD9bVWmKKURC1QGTORty2PqEjSpG7FvMgsqNi U0u424Oc95YThj6eQIkbWEuAtHbklrQ7PhLbzVGZjU0b3TIsHjpdbqt3pfl0RQKrienRIS v1CibStb/MZ0gdLCSQP+pJunMEO44ZYdFOnJSY0+nh/s9cjhFErWcs1Hx5xKsw== ARC-Seal: i=1; a=rsa-sha256; d=iki.fi; s=lahtoruutu; cv=none; t=1765310690; b=BCcCDXtXFJgVrHerMWjIsZn7x6n7ubc5EuVhtg64u4BxwieKOHSBt6KVPNSoRLXXB8U34p cksEQ5K88wvIEEks7gwaxKCT5VrBZfp06YgoIsu+nLP3i2iJUHkMOa7xxjZq/0Nb23U8aH 2OE3cbRkFL9EStGoiI+SwHX9kJEiAuJ1RmDbFk4pS0zxJAjzBRIYxGIqaNGhLfKXU5VHcE fOvj4DQ0Ww1gX7kUTl05xh2Fli4KWQSJm6cC4mVTbsLkPDcfXH2bnjlgV6Bsw1pMSz8F0F cK+mF37uo8pau1BSfHsfPAfkV+GM5KJ1sO5k8M0DK7397sO0PJXfNhPMVINxEg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=hlinnaka smtp.mailfrom=hlinnaka@iki.fi Message-ID: Date: Tue, 9 Dec 2025 22:04:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: pgsql: injection_points: Remove portions related to custom pgstats To: Tom Lane Cc: Michael Paquier , Andrew Dunstan , pgsql-committers@lists.postgresql.org, Sami Imseih References: <2899652.1765167313@sss.pgh.pa.us> <2904427.1765169854@sss.pgh.pa.us> <251242.1765302019@sss.pgh.pa.us> Content-Language: en-US From: Heikki Linnakangas In-Reply-To: <251242.1765302019@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 09/12/2025 19:40, Tom Lane wrote: > Perhaps another alternative is to add "DROP EXTENSION > injection_points" at the end of the test scripts in the > problematic modules. It's a little tricky if a module has more than one test that uses the extension. Namely src/test/modules/nbtree which I added recently has two test scripts, nbtree_incomplete_splits.sql and nbtree_half_dead_pages.sql, and both of them do "create extension if not exists injection_points;". They run concurrently, so they race on which one creates the extension first. We can't do the same for DROP EXTENSION at the end. Maybe that's not a great design in the first place, though. Perhaps that module should use a schedule file: # create injection_points extension before the actual tests test: test_setup test: nbtree_incomplete_splits nbtree_half_dead_pages # drop injection_points extension because it cannot be pg_upgraded. test: test_clean - Heikki