| From: | shihao zhong <zhong950419(at)gmail(dot)com> |
|---|---|
| To: | alvherre(at)kurilemu(dot)de |
| Cc: | o15611(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
| Subject: | Re: BUG #19580: Can not FINALIZE detach partition. Table in stuck |
| Date: | 2026-12-05 17:25:38 |
| Message-ID: | CAGRkXqTEYY3Uc11MrLDBHW1b16KX8cg+RGXyNQXjbXNbVe7Ebg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
Hi Alvaro,
I think You are right that the bug is in ATTACH side.
Since 17 it sets identity only on the attached table and not on its
partitions, also when that table was never in the tree.
The attached patch sets identity at every level and makes DETACH
warn and skip a partition without it, as you suggested.
I verified the fix on 17 to 19 and master.
Thanks,
Shihao
| Attachment | Content-Type | Size |
|---|---|---|
| v1-0001-Fix-stuck-DETACH-of-a-re-attached-partitioned-tab.patch | text/x-patch | 9.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | shihao zhong | 2026-12-05 17:29:42 | Re: BUG #19954: pg_upgrade fails to handle foreign data wrapper and event trigger when their owner demoted |
| Previous Message | shihao zhong | 2026-12-05 16:53:54 | Re: btree_gist: <-> fails on same-sign infinite intervals |