From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Aram Fingal <fingal(at)multifactorial(dot)com> |
Cc: | Postgres-General General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Alter table to "on update cascade" |
Date: | 2010-11-17 16:36:06 |
Message-ID: | 4CE40476.7050601@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 11/17/2010 08:32 AM, Aram Fingal wrote:
> I have a table where I should have declared a foreign key with ON UPDATE CASCADE and didn't. Now I want to fix that. From the documentation on www.postgresql.org, about ALTER TABLE it's not at all clear how to do this or even whether you can do this.
>
> -Aram
http://www.postgresql.org/docs/9.0/interactive/sql-altertable.html
ADD table_constraint
This form adds a new constraint to a table using the same syntax as
CREATE TABLE.
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | A.M. | 2010-11-17 16:43:34 | Re: Re: Survey on backing up unlogged tables: help us with PostgreSQL development! |
Previous Message | Ivan Voras | 2010-11-17 16:32:56 | Re: Survey on backing up unlogged tables: help us with PostgreSQL development! |