| От | Sebastian Böck |
|---|---|
| Тема | Re: deactivating/activating constraint |
| Дата | |
| Msg-id | 43301FE6.1070802@freenet.de обсуждение исходный текст |
| Ответ на | deactivating/activating constraint (Oleg <evdakov@iwk.uka.de>) |
| Ответы |
Re: deactivating/activating constraint
|
| Список | pgsql-general |
Oleg wrote: > Dear All, > is it possible to temporary deactivate a constraint in PostgreSQL? > There is a constraint that does not allow me to write some data (see > e-mail below). But after all datasets are written the constraint is > valid. So I was wondering wether it is possible to deactivate a > constraint write all records in all tables then activate constraint > again. Somebody told me that it is possible in Oracle. > Thanks a lot in advance > Oleg Have you tried to make the Foreign Key deferrable and initially deferred? See: http://www.postgresql.org/docs/8.0/interactive/sql-createtable.html HTH Sebastian
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера