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 1w3L07-0017rB-0R for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 21:33:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3L05-002zSy-25 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 21:33:54 +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.96) (envelope-from ) id 1w3L05-002zSq-1D for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 21:33:53 +0000 Received: from mail-ej1-x632.google.com ([2a00:1450:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3L02-000000004aw-3PZi for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 21:33:53 +0000 Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-b9382e59c0eso4725266b.0 for ; Thu, 19 Mar 2026 14:33:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773956030; cv=none; d=google.com; s=arc-20240605; b=Rboga33wmoBF+ulSJIA1qgMoCmpNm34fr19qNNVWDvrFwVchW7uF3G3TeWkjlUp7Ub cnN0RU/NV+R710vSEDrMP+AoLHT/EOgQXKhtOyTh9q9t+wprCSCuq0act++6Olc/uirN wdCIWubYhi8ZlmSsl9NslahPiI2uAi6Z1JTo+Zb1BvhvvIZlQYSUJChvuHZhiNvwmaTk 4FEs1DYZydJeN+5prE6gjngVtbdb2vdRFQ08mHnh2ODECMfgP0U2orJyR/L64I8k+RP5 XufhdU73a7TsLhjP4GGkiBIdoYp+UH+7E4WWKkr1Y9Qzef8DgtuQuHFTSmEpzowZVI5M 4tBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=sIkOdj6qzdsCgCPmSOXU4cZzyRyDdk4/bMbekwUlzuY=; fh=2qOamL65oV0JBLIoEPwsd+4eA/OESQ8OIwtZWc6YtsI=; b=CvxY0tW/DWSl6T7b+Na19jrzb24Vrp6l3nB15oGrm8r7MW/qWE/bMws6SfWB1vnfnY k4Yw7KHXHxCACsX1TaWzCutmdFQ5ppjV5GfpjMqFz0i0eLoCARVnKNFHg05jlpg9d6v3 t0Gf+KePaCqIcCSyRymdj29MdEej4f3F2Lp5xzX2D2vqh0AmviOaw4tM7cuuYbeJhLlG /hU2bcrfCXuc1zCry5C4ZuHAJTbq6yT9PDTlcngAlkHa4y7fdYyiSya+vz6sHJX4JMfr i5VQoN76Zp0BsEZ18QFCCHm8zc+va12ORAnOlAt2cUxCk+3tx7aPTcyNWxxMNBa4tAeH p+0A==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773956030; x=1774560830; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sIkOdj6qzdsCgCPmSOXU4cZzyRyDdk4/bMbekwUlzuY=; b=P5zk5MbAZCc1QJvVyANR9Il2jN4xlLLuZRzOrsehtChZsQ+vIzNcp6oNaEQxdAmbhQ u+ETi1E6QSTTI+7AXYYTQQ6dTJXSNa+nwODzOyIVo8Ba+cKbdhfFQ5TDbQMsMWnHhW19 l3jEFg23llXigY7Z4RZ4Uj6QMgp4GpHVQRTeyNdaOdzKiCb0fbuazH2/rdUw1iHGPCWe 5ZhgS3NJlA3KJw02btqcRJ9IIXdTsDmceVaRmr9wWjfBge2lq/xx8RyGd5cisFgZZLr2 kwYhVm0zOBpvSD98Eky0WE+mxrx0jdLo3B+QEHSgYTXj4su2ZYquAu4JABbxxfgOLiQu ulSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773956030; x=1774560830; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sIkOdj6qzdsCgCPmSOXU4cZzyRyDdk4/bMbekwUlzuY=; b=QwUVxT/1KbGEN61zeFR15C0WkxvfYatg6IxKaabb4jaXkUTyBXJuA5fWZ6+ukksV33 PrE5oPmIfBQ3gXVlBc+CjyRbMVI6FewFK+7kz+Y5VlMi/eFJtrrLYM0U/tCOZNlGH0p+ KbWuZl76gYgVXq2KXO3/jStdp9F5JU6DPHGuNgQkpbcJC13fOG1mxkFzrUK1gAOZ2PMH 0DXFxqIhvdZ24tZH3ajnRRgYi4wknAkEGAkcw3JNr01L3BGIq/9iuYHYzYp/LDV6Q+2n gOgNVrhxPKzfrTYtCEB0Og0yz0T5DrCHJcESChBFHrI3ZvhbvnfamHpt4ekjCjgZ838q vp7Q== X-Forwarded-Encrypted: i=1; AJvYcCURMh7mFJBkAsv77zgH8pznJXi7BPm/Yuyk/p0TMY5HfHhHbSbHbzEMENPAd2hYE996mTVHEo8uC1a5uF3U@lists.postgresql.org X-Gm-Message-State: AOJu0YxsCQ/RnkTWLjW0SS1auQPkUzQ2FWFrP6GmmMtiGM4HzKubx3Ag kzkl2M2+mWPNmBws/cSYD9EZS5PFpl7szUSO5dExtr3Aoy014SttepZcAyTnpWA4Gtikjb4ntiE ZExgjtftW/lVi3QTRrQoSM3FfO/sJUeE= X-Gm-Gg: ATEYQzwEGIKYqL83VlVBLIve7VTgtZNFxbXln3z87eZoC29iV4eO1a6JO7Lv/FF9rhE Mw9Ke1P/d/1jAtCkN33G1sVQ0YrxLkd0Dq9Yh315+xq8gMU1evWrGNytmoeSFmSK1CVQ6KR2FYa Xr6/1E8pFizXwIsEBx4SWPre2tiyfbVDHOOqEr1oSZGDmgcNOPZlWpi+AidlRkdfFSm5I/vXH5v cHK4e3eokFEuN9+goGRllmzzSrbZhX+HqZvhQkKgSxvVFpMeQIbdJaYYDWSVpEqdGiMKww1tgLJ eY73mv05lRDwDjzCfZWfT210e5I5BzLibASFcy4= X-Received: by 2002:a17:907:f207:b0:b96:efe7:b061 with SMTP id a640c23a62f3a-b982f249523mr56819266b.21.1773956030081; Thu, 19 Mar 2026 14:33:50 -0700 (PDT) MIME-Version: 1.0 References: <1299934.1773938807@sss.pgh.pa.us> <1095d3fe-a6eb-4d83-866e-649d6f369908@gmail.com> In-Reply-To: <1095d3fe-a6eb-4d83-866e-649d6f369908@gmail.com> From: Robert Haas Date: Thu, 19 Mar 2026 17:33:37 -0400 X-Gm-Features: AaiRm50YUsFH39c1aRoHtxYDtwjCMb7vZbowPi3YO1U_j1jPre5KA6V4IrK3IRA Message-ID: Subject: Re: pg_plan_advice To: Matheus Alcantara Cc: Tom Lane , PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Mar 19, 2026 at 4:12=E2=80=AFPM Matheus Alcantara wrote: > We can add a 'priority' for the test: > > 'tap': { > 'tests': [ > 't/001_replan_regress.pl', > ], > + 'test_kwargs': {'priority': 50}, > }, > > Even if it's not help with resource consumption I think that it still > worth adding. It reduces from ~5m to ~4m on my machine. I tested this out here. Without this change, 'meson test' takes 2:53-2:55 for me. After making the change, I got times from 2:53-2:56, so basically no change. But I suspect your proposal here is still the right thing to do. I wondered if it should actually do what src/test/regress/meson.build does: 'test_kwargs': { 'priority': 50, 'timeout': 1000, }, ...but it seems as though the timeout for TAP tests is already 1000s, so maybe we don't need to change anything. Or maybe the recent "timedout" errors in the buildfarm are a sign that 1000s isn't long enough for this more-intensive run: https://buildfarm.postgresql.org/cgi-bin/show_failures.pl?max_days=3D3&stag= e=3Dtimedout&filter=3DSubmit If so, that would be sad. On my local machine, which is a ~3 yo MacBook, running just the "regress" test suite takes ~11.1 s, and running just the "test_plan_advice" suite takes ~12s, so I admit that I'm slightly confused about why this is having such a big impact for you and Tom. Obviously I'm not running with expensive options like debug_discard_caches or Valgrind enabled, but presumably you're not doing that locally either and it still shaves a minute off the runtime for you. What exactly is different, I'm not entirely sure. Anyway, I think I should still go make your suggested change, unless somebody objects. We may change more later, but if this provides some relief to some people for now, it seems worth doing. --=20 Robert Haas EDB: http://www.enterprisedb.com