On Thu, 21 Jan 2021 04:15:03 +0000 (UTC), Mladen Gogala
<
mgo...@yahoo.com> wrote:
>On Fri, 15 Jan 2021 16:53:12 -0500, George Neuner wrote:
>
>> However, sudden drastic performance drop smells a lot like imminent disk
>> failure.
>
>Huh? I am an Oracle DBA with some experience in Postgres and have
>experienced many performance drops after a version upgrade and precisely
>0 of those performance drops were caused by "imminent disk failure".
The OP complained of major performance loss *BEFORE* upgrading, and
claimed better performance following the upgrade (which likely was due
to the new PG version having parallel query turned on by default).
It is (fairly) well known that PG neither transfers existing index
data, nor builds indexes during an upgrade. The indexes are created
during the upgrade and marked to be rebuilt incrementally, but for
best performance immediately following the upgrade, the DBA must
rebuild the indexes manually.
>I would check whether the plans have changed, what is the difference in
>parameters, check where the time is spent by using perf or strace and
>check the logs. If the plans have changed, try installing pg_hint_plan
>extension and force the desired plans. Then compare.
Assuming no query or configuration changes, "under 10 seconds" to "4
plus minutes" is a huge difference to be explained by a plan change.
Yes, it can happen ... but it would have to be the result of either
corrupted indexes or large changes to the table data.
The OP did not mention large changes to the table, and I did mention
that the indexes might have been corrupted.
George