Please sign in to comment.
Correct order of creation/destruction of FDW-related objects.
* pyrseas/database.py (Database.diff_map): Reorder calls and add calls to drop servers and FDWs. * pyrseas/dbobject/foreign.py (ForeignDataWrapperDict.diff_map): Mark wrappers to be dropped. (ForeignDataWrapperDict._drop): New method to actually drop the wrappers. (ForeignServerDict.diff_map): Mark servers to be dropped. (ForeignServerDict._drop): New method to actually drop the servers. * tests/dbobject/test_foreign.py: New tests to verify order of multiple object creation/destruction.
- Loading branch information...
Showing with 57 additions and 2 deletions.