Fix failure to remove dependencies when a partition is detached.
Robert Haas <rhaas@postgresql.org>
Fix failure to remove dependencies when a partition is detached. Otherwise, dropping the partitioned table will automatically drop any previously-detached children, which would be unfortunate. Ashutosh Bapat and Rahila Syed, reviewed by Amit Langote and by me. Discussion: http://postgr.es/m/CAFjFpRdOwHuGj45i25iLQ4QituA0uH6RuLX1h5deD4KBZJ25yg@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +21 −14 |
| src/test/regress/expected/alter_table.out | modified | +13 −0 |
| src/test/regress/sql/alter_table.sql | modified | +10 −0 |
Discussion
- Dropping partitioned table drops a previously detached partition 7 messages · 2017-06-12 → 2017-06-14