Re: Temparary disable constraint
От | Hubert FONGARNAND |
---|---|
Тема | Re: Temparary disable constraint |
Дата | |
Msg-id | 1169023009.25076.3.camel@hublinux.fidudev.fr обсуждение исходный текст |
Ответ на | Re: Temparary disable constraint (Bruce Momjian <bruce@momjian.us>) |
Ответы |
Re: Temparary disable constraint
|
Список | pgsql-hackers |
Ok it works, but we have to write a plpgsql function that takes the table_name and the constraint name in parameters....<br/><br /> It could be useful to have a : ALTER TABLE ... DISABLE CONSTRAINT ...<br /> (as oracle does)<br/><br /> it could be good to add this to the TODO LIST...<br /><br /> Thanks<br /><br /><br /><br /> Le mardi 16janvier 2007 à 22:02 -0500, Bruce Momjian a écrit : <blockquote type="CITE"><pre> <font color="#000000">Hubert FONGARNAND wrote:</font> <font color="#000000">> Hi,</font> <font color="#000000">> </font> <font color="#000000">> Is there a way to temporary disable a constraint (without drop and</font> <font color="#000000">> recreating it) in postgresql?</font> <font color="#000000">Sure, try ALTER TABLE ... DISABLE TRIGGER for the constraint trigger</font> <font color="#000000">name.</font> </pre></blockquote> _______________________________________________<br />Ce message et les �ventuels documents joints peuventcontenir des informations confidentielles.<br />Au cas o� il ne vous serait pas destin�, nous vous remercions de bienvouloir le supprimer et en aviser imm�diatement l'exp�diteur. Toute utilisation de ce message non conforme � sa destination,toute diffusion ou publication, totale ou partielle et quel qu'en soit le moyen est formellement interdite.<br/>Les communications sur internet n'�tant pas s�curis�es, l'int�grit� de ce message n'est pas assur�e et lasoci�t� �mettrice ne peut �tre tenue pour responsable de son contenu.
В списке pgsql-hackers по дате отправления: