Postgresql DROP TABLE doesn't work

前端 未结 7 1220
别跟我提以往
别跟我提以往 2020-12-08 02:43

I\'m trying to drop a few tables with the \"DROP TABLE\" command but for a unknown reason, the program just \"sits\" and doesn\'t delete the table that I want i

相关标签:
7条回答
  • 2020-12-08 03:14

    Old question but ran into a similar issue. Could not reboot the database so tested a few things until this sequence worked :

    • truncate table foo;
    • drop index concurrently foo_something; times 4-5x
    • alter table foo drop column whatever_foreign_key; times 3x
    • alter table foo drop column id;
    • drop table foo;
    0 讨论(0)
提交回复
热议问题