Database Administration & Monitoring
PostgreSQL: Dropping a table automatically if another table is dropped
06.11.2022 by Daniel Westermann
Imagine the following use case: You have a table t1, and based on it’s contents you create another table t2. What you want to achieve is: If table t1 gets dropped, you want to have table t2 to be dropped(…)