| От | Tom Lane |
|---|---|
| Тема | Re: ALTER TABLE ... IF EXISTS feature? |
| Дата | |
| Msg-id | 27481.1288980255@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: ALTER TABLE ... IF EXISTS feature? (Daniel Farina <drfarina@acm.org>) |
| Ответы |
Re: ALTER TABLE ... IF EXISTS feature?
|
| Список | pgsql-hackers |
Daniel Farina <drfarina@acm.org> writes:
> I am somewhat sympathetic to this argument, except for one thing:
> pg_dump --clean will successfully and silently wipe out a foreign key
> right now, should it exist,
No, it will not, because we don't use CASCADE in the drop commands.
The case I'm thinking about is where we are trying to --clean the PK
table, and the referencing table is one we don't know about. The other
way around, the FK constraint will disappear, but that's arguably less
problematic.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера