Fix catalog cleanup on DROP EXTERNAL TABLE
When dropping an external table, the pg_exttable catalog entry must be removed as well to avoid dangling entries building up. Reverse the logic in deleting the catalog entry to make sure we delete it before scanning for a potential next one. Also fix up the tests for this as they were testing the removal of the pg_class catalog entry rather than the pg_exttable entry. Reported by Ashwin Agrawal in Github issue #1498
Showing
想要评论请 注册 或 登录