Upgrade from Fedora 40 to Fedora 42, or from PostgreSQL 16.3 to PostgreSQL 16.9

From: "Michael J(dot) Baars" <mjbaars1977(dot)pgsql(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Upgrade from Fedora 40 to Fedora 42, or from PostgreSQL 16.3 to PostgreSQL 16.9
Date: 2025-07-18 09:31:24
Message-ID: CALudE+4+48bv3f+snVJJvfab=mSuWvScX_gsnYkeG=Xh9dKGTA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello fellow PostgreSQL users and developers,

I installed a new Fedora release last week and ran into a peculiar problem:

Each night I need to run computations through about 70.000 rows and using
release 16.3 that took about 4 hours to complete, but using release 16.9
the same computations now take about 8 hours to complete.

I've checked the unix sockets, inet sockets and the NVMe drive for
deviations between the different kernels, but found none. Configuration
files are exactly identical as well. Somewhere in between release 16.3 and
release 16.9, changes must have been implemented that make the execution
engine about two times slower than it was.

Two particular queries, that run about 70.000 times each night, gave the
following results:

Query 1 over unix sockets:

release 16.3:
Time: 194.093 ms
Time: 169.714 ms
Time: 174.424 ms
Time: 170.285 ms

release 16.9:
Time: 281.554 ms
Time: 290.257 ms
Time: 290.886 ms
Time: 287.528 ms

Query 2 over unix sockets:

release 16.3:
Time: 132.500 ms
Time: 133.182 ms
Time: 134.511 ms
Time: 130.818 ms

release 16.9:
Time: 251.238 ms
Time: 247.749 ms
Time: 246.862 ms
Time: 248.541 ms

These differences add up to about 4 hours additional computation time each
night. Apparently I have to scale down on the amount of work that can be
done in one night.

Keep up the good work, but don't lose the big picture out of sight :)
Hopefully this issue can be resolved quickly.

Kind regards,
Mischa.

Attachment Content-Type Size
FURY Renegade NVMe SSD (Chipset) - 6.12.13-100.fc40.x86_64.log text/x-log 3.3 KB
Intel Corporation Ethernet Controller I225-V - 6.12.13-100.fc40.x86_64.log text/x-log 2.8 KB
FURY Renegade NVMe SSD (CPU) - 6.15.4-200.fc42.x86_64.log text/x-log 3.3 KB
FURY Renegade NVMe SSD (CPU) - 6.12.13-100.fc40.x86_64.log text/x-log 3.3 KB
FURY Renegade NVMe SSD (Chipset) - 6.15.4-200.fc42.x86_64.log text/x-log 3.3 KB
Intel Corporation Ethernet Controller I225-V - 6.15.4-200.fc42.x86_64.log text/x-log 2.8 KB
Duration of nightly computations.png image/png 73.8 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-07-18 09:33:01 Re: POC: enable logical decoding when wal_level = 'replica' without a server restart
Previous Message Andrei Lepikhov 2025-07-18 09:31:01 Re: track generic and custom plans in pg_stat_statements