我尝试在数据库中创建一张表格,但出现了以下错误。
ERROR: type "tbl_last_alert" already exists
HINT: A relation has an associated type of the same name, so you must use a name that doesn't conflict with any existing type.
然后我认为表格一定存在,所以我运行了以下查询:
select * from pg_tables;
但是没有找到任何东西。然后我尝试了:
select * from tbl_last_alert;
ERROR: relation "tbl_last_alert" does not exist
你有什么想法可以解决这个问题吗?
我正在尝试通过
重命名类型。ALTER TYPE v4report.tbl_last_alert RENAME TO tbl_last_alert_old;
ERROR: v4report.tbl_last_alert is a table's row type
HINT: Use ALTER TABLE instead.
并且遇到了错误。
schemaname | relname | relkind ------------+---------+--------- (0 行)
- smn_onrocks