pg_dump fails to lock partitioned tables
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2021-10-16T01:05:27Z
Lists: pgsql-hackers
Attachments
- make-pg-dump-lock-partition-parents-too.patch (text/x-diff) patch
While fooling with something else, I happened to notice $SUBJECT. The reason turns out to be that it's checking the wrong element of the tblinfo[] array; see one-liner fix attached. I had a feeling of deja vu about this bug, and indeed a dig in the git history shows that we fixed it in passing in 403a3d91c. But that later got reverted, and we forgot to keep the bug fix. regards, tom lane
Commits
-
Make pg_dump acquire lock on partitioned tables that are to be dumped.
- 2e2a232831c7 10.19 landed
- ca7a4ce5835a 11.14 landed
- fd182a92ad90 12.9 landed
- 6a262ba8c864 13.5 landed
- b5152e3ba688 14.1 landed
- e2ff7d9a83d4 15.0 landed