| От | Tom Lane |
|---|---|
| Тема | Re: pg_restore problem |
| Дата | |
| Msg-id | 16782.1046970825@sss.pgh.pa.us обсуждение |
| Ответ на | pg_restore problem (Lonni J Friedman <lfriedman@vasoftware.com>) |
| Список | pgsql-general |
Lonni J Friedman <lfriedman@vasoftware.com> writes:
> pg_restore: [archiver (db)] could not execute query: ERROR: Relation
> "artifact_file" does not exist
> My guess is that the problem is that artifact_file has not yet been
> restored from the dump (its further along), however I don't understand how
> to compensate for this problem.
You need to force pg_restore to load the database objects in a safe
order. I haven't done this recently, but basically you make a listing
of the archive's table of contents (TOC), rearrange it with a text
editor, and use that file as a control file for pg_restore. See the
pg_restore man page.
Eventually this should be automated better :-(
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера