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 1w3LiI-0018UX-15 for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 22:19:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w3LiG-003Hkf-2b for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2026 22:19:33 +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 1w3LiG-003HkW-1W for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 22:19:32 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w3LiE-000000004TC-3q53 for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2026 22:19:32 +0000 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-b97ed4ad579so6600966b.3 for ; Thu, 19 Mar 2026 15:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773958769; cv=none; d=google.com; s=arc-20240605; b=fpm1chZrbBGrUzRhhv+lV0nmkQVWaNXAOs6JIxrVL6KMYlbs/S8xMymMzwIdlO19dp 4AIj6BYRq7gumm9Q2lvoHac19aR+1TNrCPC03FWuriP8UkKK2aq03YX0Iqp5X75eUcMK L6bQJfoBvKKKMV1TqE024OV1Lo3HTsbcefRVyMS3tj3dE0wU8gKFIc836A7iNYjl34te 8yKlAZ223LBABdrbHv5hUV0YNxkOAWTP9Qnw0llQkeID7gEw5cZnIuByyR4ZqtFSfED8 PqOcuiiLpwRx00tkW6wTiZw2kaPXtGOx/kmRbQq9bMmAKZLdBOleEf7HKDhTynJY59xa AQyw== 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=X1fic/6uY4nGEFAsK8q/fEqeQ09UsXNkP3jEaAAQ+vI=; fh=iu9ymrjhdEAmHGDcfYFdwnbMf2pb1qUtYgi/XmZ/lvM=; b=OCcP0TpVVrxclclwAjFETCm3lQBP0zJAl0ydlKlDwvHfLaGf6HmYuJRakGhFJFTvBL 7jaok51R2fSIxuXy4SbGT0G08NzBVXgz3Gi0OXRCQCBuC+EFxjn5ikNQPBbhyHaoERmk OdkBUPxH37b0D2q29pEFqKDyfh8wbEhuylkW/KzMdhZgmMNX6Mdf9pM81su+Z+0IY93F 6a9lu/bXiu8mQjnJkUiE27/UBIzeJoO+0jKTuNkZU/ZGFIsG/JNn2pzNLX7Vk0Iv2F6A B9sNesSfdDQ1NRhXiH1yxIk8UD+j88Cljf84X2bot3MVTEGjV07LwDlxDw7uKBSe8gK3 LP/A==; 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=1773958769; x=1774563569; 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=X1fic/6uY4nGEFAsK8q/fEqeQ09UsXNkP3jEaAAQ+vI=; b=TMkffuSnfIdo0llfIbAvR8/PVn9Ox7U/mqAKwsNjKod3zoa4yqQQXy901Z5g+gVp+s rlCmMG7IQsSNOYquyTcZxiKRTzjKLAL1hzI/WpKUE+5Jp/tftYUWo61FUmD2gkBJlpIc V1EwpLympJB+xy/ljylmvIcXyEDCuXl1cmef9Kuogn+N1i2bpnVCV3t42qr/32jxlc72 V9dxW4ozWOwSKsI4OViVi0vEQAa81AmSnB0J3CcHCiGBlL95woEuVHnCS0BWlzxk+uz/ i0JyCocJj3XvCPeQ3FthuhDqGG9lV0lkKGN8wt7wQT8KoUhqvsGddf7Yo5+8l5ut+I2z 09pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773958769; x=1774563569; 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=X1fic/6uY4nGEFAsK8q/fEqeQ09UsXNkP3jEaAAQ+vI=; b=EaKCEBqzQF+/R4DMgu/lZzxddld/n6yItyORsa+5Uwp2qjLnr6HUsSRXKXIjRlb1Za qeDS2rD69jZvHk92LWT7n6WdPJShTRjBa2CEr2j2aXbNllC3OsqXUK7fcjkLQwHfQoZX s6Cn0t5j/KALr7pcTNPfoDakkmBIMxiGlqc3QI3xG5c5sxaFnm7aKOm7MesztLUTQ6Dc MSIrYTCSKrYCBDjpwSGuUmccHp/rAr02Qg0CBzO9rNAHhnXu/QvZQ8oMUzGwCoJTqL69 gUyEnZg1Oaxx3wo5wEtfwRVlzCVMXreKEsCBKtVKY50tZiVwUu5DwgXJnzJlrJhsuuex L/ZA== X-Forwarded-Encrypted: i=1; AJvYcCUAwakAVeOfrTTzSHj1GX3M3FQBvLbX6Eksopy8BFvFiqyCoDt6rLJysMMbfB2hkGvV6ogO4WWsBo4po8rb@lists.postgresql.org X-Gm-Message-State: AOJu0YzzIT8D4O2v/dqTV+Zn0leXL+gWymOEfX+ci4tV/33dsopIIWip 83waESfvfMpbDy4Yvnlw1xNZJ+x2pWBid6n4koT8/aHIfNusCVSrI1NRqnRUyre5YdPu2bL9Pga 81KVQu0InwKfiazNjfcatXBXTi1IaZAo= X-Gm-Gg: ATEYQzyZ0fuH4n029xZ2KOIUFMv4ZI+J4R7azISG1SBGcSj3ZZXmzqf6uPHh217sw73 qPgghHreze/nICJQykHc3WM9au6F8jKiZCBze0Ra7I4mj6iSC58djpMFd8VBZBMcQy4yRvSB5WH 7zLEykRJpiaFf/6959DP/VwlwucQDrJSSvID2omRwJ8TO0xBlkIt7yXhhSzuuPO67hBeecbRn3C 0Tf05MScZx/aKAzURsDlVWmDjZ4K59w/GkoZLNazaBR4vi3nY6IwAYwIGf1SDQ36441g0L6kPlO eXXOYfVDe0kBm46Jg6/XWOGFYtrgvp2qwKJdL1c= X-Received: by 2002:a17:907:6c10:b0:b97:bc6b:7f21 with SMTP id a640c23a62f3a-b982eeec4b0mr75024766b.0.1773958769199; Thu, 19 Mar 2026 15:19:29 -0700 (PDT) MIME-Version: 1.0 References: <1299934.1773938807@sss.pgh.pa.us> <1500792.1773957794@sss.pgh.pa.us> In-Reply-To: <1500792.1773957794@sss.pgh.pa.us> From: Robert Haas Date: Thu, 19 Mar 2026 18:19:17 -0400 X-Gm-Features: AaiRm50OZY0k4hg3UxONCd4ZXyfgIxMa2BxnwHwPFYDUrSqmPl4uzc842_S3n3M Message-ID: Subject: Re: pg_plan_advice To: Tom Lane Cc: Matheus Alcantara , 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 6:03=E2=80=AFPM Tom Lane wrote: > Please note that I was citing the runtime of a much slower machine > (longfin is a 2018 mac mini). But in any case, what I was griping > about was the additional cost added to a buildfarm run; I don't see > that test_plan_advice is a lot slower than the main regression tests. > It's just that those are already a significant investment, and we > just iterated them another time. Right, and there's definitely plenty of worthless crap in there that isn't adding any value. For example, every \dWHATEVER command in the regression test is running basically the same queries every time, and after the first time we're probably not learning anything new. And all the DDL commands that are part of the regression tests are fairly useless here. The grison failure is actually triggered by a DDL command, but I think that might just be luck rather than the test_plan_advice module is doing anything to systematically increase the likelihood of such findings. But I don't know how we can separate the wheat from the chaff. Obviously a lot of the DDL and \d commands in the tests are either setup for queries that we should care about testing, or verification that those queries did what they were supposed to do. If we split the main regression test suite up, so that we had one test suite for planner-related stuff, another for DDL, and another for data types, or something like that, then test_plan_advice would probably mostly just need to run on the first of those. But that kind of split seems like a lot of work. Do you think the idea of piggybacking the test_plan_advice run onto another run that we're already doing has any potential? That would reduce the incremental cost quite a lot, I think. --=20 Robert Haas EDB: http://www.enterprisedb.com