Я пытаюсь создать таблицу в своей базе данных, и она дает мне следующую ошибку.
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.
и получаю ошибку.