Re: [HACKERS] Foreign keys: unexpected result from ALTER TABLE... ADD CONSTRAINT...
В списке pgsql-hackers по дате отправления:
| От | Hannu Krosing |
|---|---|
| Тема | Re: [HACKERS] Foreign keys: unexpected result from ALTER TABLE... ADD CONSTRAINT... |
| Дата | |
| Msg-id | 3883B185.7484996E@tm.ee обсуждение исходный текст |
| Ответ на | Re: [HACKERS] Foreign keys: unexpected result from ALTER TABLE... ADD CONSTRAINT... (Peter Eisentraut <e99re41@DoCS.UU.SE>) |
| Список | pgsql-hackers |
Jan Wieck wrote: > > With CREATE CONSTRAINT TRIGGER (which I added first so someone could > already work on pg_dump - what noone does up to now :-( ), you can > specify deferrability and initial deferred state for the trigger. And > it correctly sets up the PK<->FK tables relationships in pg_trigger, > so that DROPping one of them removes all the triggers using it from > the other one. Needless to say that dropping and recreating a PK > table looses all the references! But dropping and recreating the > referencing tables therefore doesn't put the PK table into an > unusable state. > Oracle solves these kind of problems by having a CREATE OR REPLACE command, that keeps as much of related objects as possible if there is already an object by that name. Does anyone know if it is ANSI SQL ? -------------------------- Hannu
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера