how to add "on delete cascade" to a foreign key constraint?

From: A B <gentosaker(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: how to add "on delete cascade" to a foreign key constraint?
Date: 2010-08-18 15:56:17
Message-ID: AANLkTimTHo7ttMvVudMYbjXDTKTESj4HsSROAZsn4KTK@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello.

I have a table with a foreign key constraint, how can I add "on delete
cascade" to the foreign key?

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Tom Lane 2010-08-18 16:24:07 Re: how to add "on delete cascade" to a foreign key constraint?
Previous Message Chip Steele 2010-08-18 15:20:20 Streaming Replication in PostgreSQL9.0 b4: Standby dropping connections