pg_dump of non nublic schema causes problems on restore.
В списке pgsql-general по дате отправления:
| От | Howard Cole |
|---|---|
| Тема | pg_dump of non nublic schema causes problems on restore. |
| Дата | |
| Msg-id | 48DA2B8A.7090700@selestial.com обсуждение исходный текст |
| Ответы |
Re: pg_dump of non nublic schema causes problems on restore.
|
| Список | pgsql-general |
Appologies if this has already been fixed, but I have come across a problem with pg_dump when dumping a single non-public schema. (This is on Windows Pg 8.2). It did not cause any major problems because I obviously made a backup of the database before I tried a restore, and managed to fix the backup to run in the right order. The problems is when creating a dump of a single (non-public) schema, with the create option. pg_dump -n myschema -c -Fp -f myschema.sql In the sql file I get: SET search_path = myschema, pg_catalog; -- Drop all tables etc. DROP SCHEMA myschema; CREATE SCHEMA myschema; CREATE TABLE table1 (...) etc. The problem here is that table1 gets created in the public schema, not myschema, presumably because the search path is no longer valid after the drop schema.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера