Re: Regression failures after changing PostgreSQL blocksize - Mailing list pgsql-hackers

From Alexandre Felipe
Subject Re: Regression failures after changing PostgreSQL blocksize
Date
Msg-id CAE8JnxP0js27RrunxXktvfmnum7csoBe2q_R+sj08hoqDNG3Zg@mail.gmail.com
Whole thread Raw
In response to Re: Regression failures after changing PostgreSQL blocksize  (Álvaro Herrera <alvherre@kurilemu.de>)
Responses Re: Regression failures after changing PostgreSQL blocksize
List pgsql-hackers
Hi Álvaro,

I think we can make it work

I just noticed that pg_regress provisioned `get_alternative_expectfile` for that, and I see examples like `char{,_1,_2}.out`, but that is horrible for maintenance (I personally think that we could have the input and expected output in one single file).

I added a patch that would support selective matching. Check the README.md, it contains some human readable instructions that I also used to test the implementation. `make self-test` extracts examples from README.md and runs pg_regress on them, i.e. test the implementation on the documentation.
By default it ignores comments and spaces, and in the expected file you can enable/disable other things, e.g. ignoring numbers in specific lines would probably help with the 32kB failures.

Regards,
Alexandre

On Fri, Feb 20, 2026 at 9:42 PM Álvaro Herrera <alvherre@kurilemu.de> wrote:
On 2026-Feb-20, Alexandre Felipe wrote:

> What about pattern matching? being able to write regular expressions on the
> expected outputs?

I doubt that will work.

--
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Entristecido, Wutra                     (canción de Las Barreras)
echa a Freyr a rodar
y a nosotros al mar"
Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: refactor architecture-specific popcount code
Next
From: "David G. Johnston"
Date:
Subject: Re: Regression failures after changing PostgreSQL blocksize