mirror of
https://github.com/postgres/postgres.git
synced 2026-02-26 11:21:03 -05:00
deleteWhatDependsOn() had grown an uncomfortably large number of assumptions about what it's used for. There are actually only two minor differences between what it does and what a regular performDeletion() call can do, so let's invent additional bits in performDeletion's existing flags argument that specify those behaviors, and get rid of deleteWhatDependsOn() as such. (We'd probably have done it this way from the start, except that performDeletion didn't originally have a flags argument, IIRC.) Also, add a SKIP_EXTENSIONS flag bit that prevents ever recursing to an extension, and use that when dropping temporary objects at session end. This provides a more general solution to the problem addressed in a hacky way in commit |
||
|---|---|---|
| .. | ||
| expected | ||
| sql | ||
| .gitignore | ||
| Makefile | ||
| test_ext1--1.0.sql | ||
| test_ext1.control | ||
| test_ext2--1.0.sql | ||
| test_ext2.control | ||
| test_ext3--1.0.sql | ||
| test_ext3.control | ||
| test_ext4--1.0.sql | ||
| test_ext4.control | ||
| test_ext5--1.0.sql | ||
| test_ext5.control | ||
| test_ext6--1.0.sql | ||
| test_ext6.control | ||
| test_ext7--1.0--2.0.sql | ||
| test_ext7--1.0.sql | ||
| test_ext7.control | ||
| test_ext8--1.0.sql | ||
| test_ext8.control | ||
| test_ext_cyclic1--1.0.sql | ||
| test_ext_cyclic1.control | ||
| test_ext_cyclic2--1.0.sql | ||
| test_ext_cyclic2.control | ||