| From: | Yasir <yasir(dot)hussain(dot)shah(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Cc: | Zhang Mingli <zmlpostgres(at)gmail(dot)com>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Subject: | Re: Regression failures after changing PostgreSQL blocksize |
| Date: | 2026-02-12 19:18:39 |
| Message-ID: | CAA9OW9e4pqPtV9JBsty81bTi6i-M_sQv+cF6+-wuCn=1Y+ziwA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
Thank you all for providing invaluable information. Based on the answers,
it's clear that regression failures with custom block sizes are expected
and not necessarily indicative of functional bugs.
However, it creates doubts, so, can we add alternative test output files
for the changes caused by different block sizes? E.g: the attached poc
patch. Whether such an approach would be acceptable?
Which other compile time options are expected to cause test failures?
Regards,
Yasir Hussain Shah
Data Bene
On Thu, Feb 12, 2026 at 7:49 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Zhang Mingli <zmlpostgres(at)gmail(dot)com> writes:
> >> On Thu, Feb 12, 2026 at 7:19 AM Yasir <yasir(dot)hussain(dot)shah(at)gmail(dot)com>
> wrote:
> >>> This produced so many regression failures. I'm wondering, are such
> failures typical/expected when altering the default block size?
>
> > Our experience shows that when changing the block size, most of the
> regression test differences are expected — they often reflect output
> variations (like buffer counts, cost estimates, or physical storage
> details) rather than functional bugs.
> > That said, it really needs to be examined case by case.
>
> Indeed. There is relevant documentation here:
>
> https://www.postgresql.org/docs/current/regress-evaluation.html
>
> (Some of that looks a bit out of date, ie differences we don't really
> expect to happen anymore. But plan changes and row-ordering changes
> are definitely expected if you change any parameter that affects
> planner cost estimates.)
>
> regards, tom lane
>
| Attachment | Content-Type | Size |
|---|---|---|
| poc-blocksize-1-2-4-16-32-regression.patch | text/x-patch | 350.7 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Stehule | 2026-02-12 19:25:03 | Re: proposal: schema variables |
| Previous Message | Andres Freund | 2026-02-12 19:17:34 | Re: Odd usage of errmsg_internal in bufmgr.c |