Re: FOREIGN KEY migration of syntax, help needed - Mailing list pgsql-general

From Tom Lane
Subject Re: FOREIGN KEY migration of syntax, help needed
Date
Msg-id 5943.1185912059@sss.pgh.pa.us
Whole thread Raw
In response to FOREIGN KEY migration of syntax, help needed  (Mike Haberman <mikeh@ncsa.uiuc.edu>)
Responses Re: FOREIGN KEY migration of syntax, help needed  (Mike Haberman <mikeh@ncsa.uiuc.edu>)
List pgsql-general
Mike Haberman <mikeh@ncsa.uiuc.edu> writes:
>    Will the following take care of all three statements?

>    ALTER TABLE ONLY assettype
>    ADD CONSTRAINT at_fk_1 FOREIGN KEY (pid) REFERENCES assettype(id)
>    ON UPDATE CASCADE ON DELETE CASCADE;

Yes, there are three or so triggers under the hood of any FOREIGN KEY
constraint.

            regards, tom lane

pgsql-general by date:

Previous
From: RW
Date:
Subject: Re: Need quick help with standalone mode
Next
From: "Gauthier, Dave"
Date:
Subject: continue in plpgsql 7.4