Re: unable to restore. pg_restore: implied data-only restore
В списке pgsql-general по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: unable to restore. pg_restore: implied data-only restore |
| Дата | |
| Msg-id | 23675.1306288763@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | unable to restore. pg_restore: implied data-only restore (Tim Uckun <timuckun@gmail.com>) |
| Ответы |
Re: unable to restore. pg_restore: implied data-only restore
|
| Список | pgsql-general |
Tim Uckun <timuckun@gmail.com> writes:
> I am trying to backup one database and restore it into a new schema in
> another database. Database1 has the tables in the public schema
> database2 has some tables in the public schema but their names will
> clash so the database needs to be stored in a different schema.
There is no support for that built into pg_dump. You could try:
* dumping to a text script and doing search-and-replace for the schema
name on the script file.
* temporarily renaming the target database's public schema out of the
way, then renaming after the restore.
* doing the schema rename on the source database before you dump.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера