Re: Why is pg_restore trying to create tables in pg_catalog?
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Why is pg_restore trying to create tables in pg_catalog? |
| Дата | |
| Msg-id | 19003.1396627090@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Why is pg_restore trying to create tables in pg_catalog? (Seamus Abshere <seamus@abshere.net>) |
| Ответы |
Re: Why is pg_restore trying to create tables in pg_catalog?
|
| Список | pgsql-general |
Seamus Abshere <seamus@abshere.net> writes:
> Why is pg_restore trying to put stuff into the pg_catalog schema of all
> places?
Hm ... does myschema actually exist in the target database? If it
doesn't, and the dump file doesn't include a command to create it,
this is what you'll get. That's because what pg_dump emits is
SET search_path = myschema, pg_catalog;
CREATE TABLE ...
and at the moment, if myschema doesn't exist, the creation target
devolves to pg_catalog. This is not terribly elegant but I'm not
sure if there's consensus to change it.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера