You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Fix creation of partition descriptor during concurrent detach
When a partition is being detached in concurrent mode, it is possiblefor find_inheritance_children_extended() to return that partition in thelist, and immediately after that receive an invalidation message thatsets its relpartbound to NULL just before we read it. (This can happenbecause table_open() reads invalidation messages.) Currently we raisean error ERROR: missing relpartbound for relation %uabout the situation, but that's bogus because the table is no longer apartition, so we shouldn't be complaining about it. A better reactionis to retry the find_inheritance_children_extended call to get a newlist, which will no longer have the partition being detached.Noticed while investigating bug #18377.Backpatch to 14, where DETACH CONCURRENTLY appeared.Discussion:https://postgr.es/m/202405201616.y4ht2qe5ihoy@alvherre.pgsql