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 1vi4w7-00EJvL-2d for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 06:09:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vi4w6-00GDua-2x for pgsql-hackers@arkaria.postgresql.org; Tue, 20 Jan 2026 06:09:55 +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 1vi4w6-00GDuS-20 for pgsql-hackers@lists.postgresql.org; Tue, 20 Jan 2026 06:09:54 +0000 Received: from mail-dy1-x1330.google.com ([2607:f8b0:4864:20::1330]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vi4w4-001Mrj-1a for pgsql-hackers@lists.postgresql.org; Tue, 20 Jan 2026 06:09:54 +0000 Received: by mail-dy1-x1330.google.com with SMTP id 5a478bee46e88-2b04fcfc0daso5971902eec.0 for ; Mon, 19 Jan 2026 22:09:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768889392; x=1769494192; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=etM96GAgkomB2xU+xFe+SdSQnxEqcfPDscsLpS1zFBY=; b=StNn2a+Ac71QRd4oDCj5XJJxq8jVquPhBmzxa3x5O0iIGRBCnFJpu9BaW9kM37nuSr 199VSiSHHMX6sFJLrHXPt/PNuArMonw+Oh9NDv0pJ7zhOmtZmPaomj9CpS2ScTig+7Q/ xVbIfmwGzAn9pda9dg+IDcQKqbSjkFEqM10fYcft5oa0kgrtGf6yAE7T7LzT7cEhYC2t elvSUle2RAPajhvv31zaWvZOl7RigMkuhoa6Tg3XP5c3RL+Vw/96By0F4c0Aocu/X+kF YcNjmTBjBagMPpLSm5rn0SV33WSqCD8+2/kZiregS9H+6APDojkwOcdLSPQsmFZMqQWw zI8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768889392; x=1769494192; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=etM96GAgkomB2xU+xFe+SdSQnxEqcfPDscsLpS1zFBY=; b=Qz6lJwLhwHbPAXByP4GDwqlgYuf5me5d+pBwwFK29M4dTP3/mTt8ML7rupc8NcYCtA ewzfMqh5fj6pPVKPLyGXp82/8yATs7SoZDYy+x+Wk/txH4PFYs1bQIOVXLAP2VNWKfzk xUKeD3DiwiUPEj8CC/yrcOMFFhJhWe+N1EZzMAAd/1gIofiVLCrMsyaLHDHshvNG2aUP W0sPIuxVfTEk87oadN1KWxgXW53k/aCcBA9nsD7xKyExYnoYHXLNC9gva15IgWaOPUj/ MPW1fVqWOPuo0UtHMgU4WlB1xBI5/wqjNdgzImeGh3oNPQgomw/1XiT8w2xT2J1G1B+L Gteg== X-Gm-Message-State: AOJu0YxqKGX7So2cii/MWnpJPXCxdehvYugB8CU1R3HVg2N2+iVeCl8L khqT2pWILXbZYkYvvfteOoj+9pGz2vRmvAfIZXxqqqip+sKgdd/iLJBP+7eJWTdu X-Gm-Gg: AZuq6aJEoQGmyuAM5Qp/46UoEKUPcism2zOo4MzPsE4gIY0r15fX8vjMOxegrwNcyJY Z6qH/g822i5IKbMDAlKtlDfP8wFd1zJUOKax0L1oUKJoOikp5ybqcMaQ7gqxlvHpdVhT4lrUq6G 0v6zdLLExCD4v10mLFoIISkE+py7OX3S3MCaMardUoRNJAEKCzQILYryTbr1pbM3ltVm+aO0FoW 7rItJmWJMtX0NZa2Ff5N2BPw77lEGRLUmoAc9IDetm0F7japl7TOdNu9iL9MtImvfzrCFfQgRFq fDZhp7bNd9o/YygTvTWJgFyuiHGXeqN+UnFeabGgxGkI3omqu65zYtehDRp/EuYYj5sdvVnWMgV EU0W2gi7wMd+JM+O+Sww1cQVjy02Kb3Vui2dt0XFDfhogpHELHzogoviISIjX6fHxTQur5Ppj0J IhhU0n1MnsmJrer6ahcQAz X-Received: by 2002:a05:7300:7c08:b0:2a4:3594:72ed with SMTP id 5a478bee46e88-2b6b40f3995mr9294068eec.28.1768889391998; Mon, 19 Jan 2026 22:09:51 -0800 (PST) Received: from smtpclient.apple ([142.171.105.12]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2b6b3679980sm16103085eec.31.2026.01.19.22.09.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Jan 2026 22:09:51 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.4\)) Subject: Re: Some cleanup of pg_stat_statements tests From: Chao Li In-Reply-To: Date: Tue, 20 Jan 2026 14:09:16 +0800 Cc: Postgres hackers Content-Transfer-Encoding: 7bit Message-Id: References: To: Michael Paquier X-Mailer: Apple Mail (2.3826.700.81.1.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 20, 2026, at 07:33, Michael Paquier wrote: > > Hi all, > > While looking at this area of the code, I have noticed that the new > "squashing" test is not consistent with the rest of the test suite, > re-creating the extension for nothing. > > The structure of the test is to have the "cleanup" phase second to > last, so as there is no need to create multiple times the extensions. > > In passing, I'd like to suggest that REGRESS in the Makefile uses one > item per line, to minimize diffs when we add new stuff. > > Any thoughts or objections about the attached? > Thanks, > -- > Michael > <0001-pg_stat_statements-Clean-up-test-logic.patch> LGTM. And I tried to the test and saw squashing is now before cleanup: ``` # +++ regress check in contrib/pg_stat_statements +++ # initializing database system by copying initdb template # using temp instance on port 58928 with PID 2069 ok 1 - select 68 ms ok 2 - dml 23 ms ok 3 - cursors 14 ms ok 4 - utility 76 ms ok 5 - level_tracking 56 ms ok 6 - planning 14 ms ok 7 - user_activity 15 ms ok 8 - wal 13 ms ok 9 - entry_timestamp 14 ms ok 10 - privileges 15 ms ok 11 - extended 15 ms ok 12 - parallel 16 ms ok 13 - plancache 16 ms ok 14 - squashing 39 ms ok 15 - cleanup 10 ms ok 16 - oldextversions 52 ms 1..16 # All 16 tests passed. ``` Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/