From: | rute solipa <rutes(at)eselx(dot)ipl(dot)pt> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org, kudo(at)pingpong(dot)net |
Subject: | Re: disable constraints |
Date: | 2003-02-26 16:50:44 |
Message-ID: | 5.1.1.6.0.20030226151506.026d0a38@mail.eselx.ipl.pt |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
i whant avoid to dropping constraint, i whant to disable the constraints,
because i need to insert a large amont of data.
is there a way?
best regards,
rute
At 03:47 PM 2/26/2003 +0100, you wrote:
>Hi!
>
>use "alter table ??? drop constraint ???"
>
>example:
>
>create table asdf (userid text, foreign key (userid) references
>person(userid) on delete cascade);
>
>\d asdf
> Table "public.asdf"
> Column | Type | Modifiers
>--------+------+-----------
> userid | text |
>Foreign Key constraints: $1 FOREIGN KEY (userid) REFERENCES person(userid)
>ON UPDATE NO ACTION ON DELETE CASCADE
>
>alter table asdf drop constraint "$1";
>
>Regards,
>Patrik Kudo
>
>rute solipa wrote:
>>hello,
>>does anyone nows how can i disable/enable table or column constraints?
>>in oracle it's possible to disable constraints like this:
>>alter table tb_1
>>disable primary key;
>>best regards,
>>rute
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 3: if posting/reading through Usenet, please send an appropriate
>>subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>>message can get through to the mailing list cleanly
>
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-02-26 17:08:14 | Re: Return type of triger functions from OPAQUE to TRIGGER in 7.3 |
Previous Message | Itai Zukerman | 2003-02-26 15:54:59 | Re: OffsetNumber, picksplit, and GiST |