Re: why is pg_upgrade's regression run so slow?

From: Alexander Lakhin <exclusion(at)gmail(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Subject: Re: why is pg_upgrade's regression run so slow?
Date: 2024-07-29 08:00:00
Message-ID: 35fe76b6-845f-bd8b-d2bf-8c824230d28a@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello Andrew,

28.07.2024 22:43, Andrew Dunstan wrote:
>
> Maybe, IDK. Meanwhile, I disabled "debug_parallel_query = regress" on HEAD for fairywren and drongo -  fairwren has
> just gone green, and I expect drongo will when it reports in a few hours.
>
> I'm at a loss for an explanation.
>

I'm observing the same here (using a Windows 10 VM).

With no TEMP_CONFIG set, `meson test` gives me these numbers:
test:         postgresql:pg_upgrade / pg_upgrade/002_pg_upgrade
duration:     72.34s

test:         postgresql:regress / regress/regress
duration:     41.98s

But with debug_parallel_query=regress in TEMP_CONFIG, I see:
test:         postgresql:regress / regress/regress
duration:     50.08s

test:         postgresql:pg_upgrade / pg_upgrade/002_pg_upgrade
duration:     398.45s

With log_min_messages=DEBUG2 added to TEMP_CONFIG, I can see how many
parallel workers were started during the test:
...\postgresql\build>grep "starting background worker process" -r testrun/pg_upgrade | wc -l
17532

And another interesting fact is that TEMP_CONFIG is apparently ignored by
`meson test regress/regress`. For example, with temp.config containing
invalid settings, `meson test pg_upgrade/002_pg_upgrade` fails, but
`meson test regress/regress` passes just fine.

Best regards,
Alexander

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2024-07-29 09:24:57 Re: Conflict detection and logging in logical replication
Previous Message a.kozhemyakin 2024-07-29 07:37:34 Re: Visibility bug with prepared transaction with subtransactions on standby