| From: | Virender Singla <virender(dot)cse(at)gmail(dot)com> |
|---|---|
| To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Cc: | Aniket Jha <aniketkumarj(at)gmail(dot)com> |
| Subject: | PG17 --transaction-size=1000 caused MVU failure |
| Date: | 2025-02-18 09:08:17 |
| Message-ID: | CAM6Zo8wcCpg4bC+2GwrKbjg1n+83bLPKyjxRX1fBGeXzsva0wg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Recently we encountered failures during a direct major version upgrade from
PG14 to PG17 on an instance, however an upgrade from PG14 to either PG15 or
PG16 went fine (on a cloned instance).
Further debugging revealed that a hard-coded*
"--transaction-size=1000"* parameter
caused the v14 to v17 upgrade failure. This change was introduced in the
following commit:
Our schema analysis revealed numerous foreign key constraints and indexes
on parent and child tables. Due to foreign key creation acquiring locks on
all related table indexes, pg_restore resulted in lock table overflow with
a "1000" batch size. We eventually did change *max_locks_per_transaction*
flag for a successful upgrade.
This is an edge case and not exactly a bug, but rather a behavior change
introduced between PG16 and PG17. It is being reported for awareness (may
open a discussion for a configurable "tansaction_size" during upgrades).
Thanks,
Virender
| From | Date | Subject | |
|---|---|---|---|
| Next Message | David Rowley | 2025-02-18 12:21:04 | Re: BUG #18817: Security Bug Report: Plaintext Password Exposure in Logs |
| Previous Message | PG Bug reporting form | 2025-02-18 08:21:47 | BUG #18817: Security Bug Report: Plaintext Password Exposure in Logs |