| От | Tom Lane |
|---|---|
| Тема | Re: pg_dump and foreign keys troubles |
| Дата | |
| Msg-id | 13513.1162935755@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | pg_dump and foreign keys troubles ("Paolo Negri" <hungrylist@gmail.com>) |
| Ответы |
Re: pg_dump and foreign keys troubles
|
| Список | pgsql-admin |
"Paolo Negri" <hungrylist@gmail.com> writes:
> My problem is that I have to load the dump (from a 7.3) in a brand new
> database (8.1) and then I need to do quite a few changes to the schema
> dropping some old foreign constraint and adding some different ones.
> ...
> How can I tell to pg_dump to dump the schema with foreign keys
> construct instead of creating constraint trigger?
You can't: the information just isn't there in 7.3. You'll need to look
at the trigger arguments and reconstruct the FKs.
IIRC the contrib/adddepend script might be able to help you with this.
regards, tom lane
В списке pgsql-admin по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера