On my postgres database, I have some tables that were created on the wrong schema ("ag_catalog"
) and I decided to drop it anyway since it was just for testing. I had also installed the age
extension, but then I dropped it with DROP EXTENSION age;
. When I tried dropping the "ag_catalog" schema, the terminal showed the following error:
demo=# DROP SCHEMA ag_catalog CASCADE;
NOTICE: drop cascades to 3 other objects
DETAIL: drop cascades to table polls
drop cascades to table options
drop cascades to table votes
ERROR: table "ag_label" does not exist
I tried creating the extension again and executing the same command to drop the schema, but now it shows another error:
demo=# DROP SCHEMA ag_catalog CASCADE;
NOTICE: drop cascades to 4 other objects
DETAIL: drop cascades to table polls
drop cascades to table options
drop cascades to table votes
drop cascades to extension age
ERROR: index "ag_label_relation_index" does not exist