pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach+dr

2024-08-12 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach+drop If a partition undergoes DETACH CONCURRENTLY immediately followed by DROP, this could cause a problem for a concurrent transaction recomputing the partition descriptor when running a prepared statement, because it tries to derefere

pgsql: Fix creation of partition descriptor during concurrent detach

2024-06-11 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach When a partition is being detached in concurrent mode, it is possible for find_inheritance_children_extended() to return that partition in the list, and immediately after that receive an invalidation message that sets its relpartbound t

pgsql: Fix creation of partition descriptor during concurrent detach

2024-06-11 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach When a partition is being detached in concurrent mode, it is possible for find_inheritance_children_extended() to return that partition in the list, and immediately after that receive an invalidation message that sets its relpartbound t

pgsql: Fix creation of partition descriptor during concurrent detach

2024-06-11 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach When a partition is being detached in concurrent mode, it is possible for find_inheritance_children_extended() to return that partition in the list, and immediately after that receive an invalidation message that sets its relpartbound t

pgsql: Fix creation of partition descriptor during concurrent detach

2024-06-11 Thread Alvaro Herrera
Fix creation of partition descriptor during concurrent detach When a partition is being detached in concurrent mode, it is possible for find_inheritance_children_extended() to return that partition in the list, and immediately after that receive an invalidation message that sets its relpartbound t