| От | andrew@pillette.com |
|---|---|
| Тема | pg_dump and circular dependency |
| Дата | |
| Msg-id | 200402162228.i1GMSnE11453@pillette.com обсуждение исходный текст |
| Ответы |
Re: pg_dump and circular dependency
|
| Список | pgsql-general |
Table A has a CHECK constraint testing boolean function F. Function F has a SELECT from Table A. In my manual build script, I create the table, then the function, and then at the very end of the script to I do an ALTERTABLE ADD CHECK. pg_dump appears to put the CHECK constraint as a clause in the CREATE TABLE statement. Now I'm in trouble, because whicheverof the table or the function is read in first by pg_restore refers to an object that hasn't been created yet. Therestore fails. I suppose I can replace the CHECK with an explicit trigger (that uses an exception) and then pg_dump will get the creationsequence correct. Is there another way?
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера