regress: query discrepancy between explain vs execution

From: Matthias van de Meent <boekewurm(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: regress: query discrepancy between explain vs execution
Date: 2026-10-02 15:42:02
Message-ID: CAEze2WgjJUiqV-VZVrWqYz+ETLtd4oKk2gbvBWxf1Fo0is5XVQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

In the partition_aggregate tests, there's a case where the explained
query doesn't match the query that's executed just below. This has
existed since the file was first committed (e2f1eb0ee3), and doesn't
materially affect the plan, but if any issues were introduced it might
not show up in this part of the test, so we should probably fix it.

Attached is a simple fix. I noticed the issue whilst debugging my
low-rowcount parallel scan costing efforts [0].

Kind regards,

Matthias van de Meent
Databricks (https://www.databricks.com)

[0] https://postgr.es/m/CAEze2Wi+Jp26mhBJvrMshKGYNTtPcxzd1BWoEW_7+eH6saj3gQ@mail.gmail.com

Attachment Content-Type Size
v1-0001-regress-query-discrepancy-between-explain-vs-exec.patch application/octet-stream 2.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Etsuro Fujita 2026-10-02 15:54:24 Re: postgres_fdw: transaction mode inheritance corner cases
Previous Message David Christensen 2026-10-02 14:55:36 Re: Fix GROUP BY ALL handling of ORDER BY operator semantics