Obteve acesso ao console psql no servidor remoto e deseja remover tabelas para importar outra coisa?
> DROP TABLE stuff;
ERROR: cannot drop table stuff because other objects depend on it
DETAIL: table other_stuff depends on table stuff.
Ups. Vamos tentar – remova-o com todas as tabelas que fazem referência a stuff
:
> DROP TABLE stuff CASCADE;
drop cascades to table other_stuff
DROP TABLE
Este era o caminho da espingarda. Agora, opção nuclear:
> DROP SCHEMA public CASCADE;
drop cascades to table stuff
drop cascades to table other_stuf
drop cascades to table even_more_stuff;
DROP SCHEMA