Re: how to add "on delete cascade" to a foreign key constraint? - Mailing list pgsql-novice

From Tom Lane
Subject Re: how to add "on delete cascade" to a foreign key constraint?
Date
Msg-id 27660.1282148647@sss.pgh.pa.us
Whole thread Raw
In response to how to add "on delete cascade" to a foreign key constraint?  (A B <gentosaker@gmail.com>)
List pgsql-novice
A B <gentosaker@gmail.com> writes:
> I have a table with a foreign key constraint, how can I add "on delete
> cascade" to the foreign key?

You can't --- just drop the constraint and add a new one.

            regards, tom lane

pgsql-novice by date:

Previous
From: A B
Date:
Subject: how to add "on delete cascade" to a foreign key constraint?
Next
From: Jorge Alberto Fuentes Casillas
Date:
Subject: Installing psqlodbc