ON DELETE CASCADE PROBLEM - Mailing list pgsql-general

From juleni
Subject ON DELETE CASCADE PROBLEM
Date
Msg-id 17499866328.20030128223014@seznam.cz
Whole thread Raw
Responses Re: ON DELETE CASCADE PROBLEM
List pgsql-general
Hello,

I have create an constraint 'udc' using following command:
ALTER TABLE predefined_attr ADD CONSTRAINT udc
            FOREIGN KEY (fkid_group_attr) REFERENCES group_attr (id_group_attr)
            ON UPDATE CASCADE ON DELETE CASCADE;

After data refreshing is my new created constraint sets to DELETE NO ACTION.
How can I change it to the DELETE CASCADE?

After data refreshing it looks like this:
CONSTRAINT udc FOREIGN KEY (fkid_group_attr) REFERENCES group_attr (id_group_attr)
           ON DELETE NO ACTION ON UPDATE CASCADE NOT DEFERRABLE INITIALLY IMMEDIATE;



Thanks in advance,
best regards,
julian



 mailto:juleni@seznam.cz


pgsql-general by date:

Previous
From: Michelle Murrain
Date:
Subject: Re: How do I unsubscribe?
Next
From: "Marc G. Fournier"
Date:
Subject: If you are trying to unsubscribe, please READ THIS ...