Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove lock check assertion for reorder
A previous commit (7e30ed6) added an assertion check to the reoder code's `swap_relation_files` to ensure that proper locks are held on the relations when updating their pg_class entries, per new requirements in recent PostgreSQL releases. However, this check failed because the function could be called on indexes as well as tables, and indexes have different locking requirements. The assertions aren't strictly needed because heap_update() has a check of its own that will raise a warning if locking requirements are not met (assuming the code is compiled with assertions enabled).
- Loading branch information