pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Retain locks after marking the partitioned index valid 7+ messages / 1 participants [nested] [flat]
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2ebd684974375e9c68b43577b7e46a83597c8d95 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/57a2e2cf51c65d8a84a81d7cb083ebcefab721b1 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/1735ad557d3701a43989921be727a833646dcf89 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/bd807012669ed8573317562b78c1221e4fabe373 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_16_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/3bd5a4755839b118e31d496f9f9a6f32970c89bc Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_15_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/9ab37b6e7cd4875d9196f59c93166b427b3394a4 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
* pgsql: Retain locks after marking the partitioned index valid @ 2026-10-25 09:24 Álvaro Herrera <alvherre@kurilemu.de> 0 siblings, 0 replies; 7+ messages in thread From: Álvaro Herrera @ 2026-10-25 09:24 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Retain locks after marking the partitioned index valid Commit 8b08f7d4820f (pg11-era), for no apparent reason, made validatePartitionedIndex() release the locks on the parent partitioned index and table when marking the parent index valid after marking the index partition as valid. This leads to race condition, which particularly manifest when restoring from pg_dump in parallel mode, for instance causing restore of FKs to fail if the PK that they depend on is being concurrently validated. Fix by retaining those locks until transaction commit, as we normally do everywhere in DDL code. Per buildfarm failures. Author: Andrey Borodin <x4mmm@yandex-team.ru> (in absentia) Diagnosed-by: Kirill Reshke <reshkekirill@gmail.com> Backpatch-through: 14 Discussion: https://postgr.es/m/l4joqljvbou26unhplkdj7m5olxn7rsy2loqlcta44nie5k3bs@zudmva7han7g Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/31fa779823c8520a2165f30fcb25880b07342462 Modified Files -------------- src/backend/commands/tablecmds.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) ^ permalink raw reply [nested|flat] 7+ messages in thread
end of thread, other threads:[~2026-10-25 09:24 UTC | newest] Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de> 2026-10-25 09:24 pgsql: Retain locks after marking the partitioned index valid Álvaro Herrera <alvherre@kurilemu.de>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox