pg_restore tells schema “test” already exists but it isn't actually

Поиск
Список
Период
Сортировка
От Alex Luya
Тема pg_restore tells schema “test” already exists but it isn't actually
Дата
Msg-id CAL6j_s9vWko-oMRsmYzbOXF79U6WBZKPZPrUdn6cDBDoh__K=A@mail.gmail.com
обсуждение исходный текст
Ответы Re: [GENERAL] pg_restore tells schema “test” already exists but it isn't actually  (Melvin Davidson <melvin6925@gmail.com>)
Re: pg_restore tells schema “test” already exists but it isn't actually  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general

When restoring a dump like this:

pg_restore --clean --create --exit-on-error --dbname=test test.tar

these error messages got printed out:

pg_restore: [archiver (db)] Error while PROCESSING TOC:
pg_restore: [archiver (db)] Error from TOC entry 21; 2615 80924 SCHEMA test test
pg_restore: [archiver (db)] could not execute query: ERROR:  schema "test" already exists
Command was: CREATE SCHEMA test;

but when:

select schema_name from information_schema.schemata;

these got printed out

schema_name     
--------------------
pg_toast
pg_temp_1
pg_toast_temp_1
pg_catalog
public
information_schema

It seems like schema "test" doesn't exist yet,why do I got this kind of error?


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Does PostgreSQL ever create indexes on its own?
Следующее
От: Melvin Davidson
Дата:
Сообщение: Re: [GENERAL] pg_restore tells schema “test” already exists but it isn't actually