Re: 7.4 - TODO : alter table drop foreign key

From: "Dan Langille" <dan(at)langille(dot)org>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 7.4 - TODO : alter table drop foreign key
Date: 2002-12-05 16:28:33
Message-ID: 3DEF3861.24289.673BE7F@localhost
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 5 Dec 2002 at 8:20, Stephan Szabo wrote:

>
> On Thu, 5 Dec 2002, Dan Langille wrote:
>
> > We support "alter table add foreign key". How about supporting
> > "alter table drop foreign key"?
> >
> > - he said as he went to drop a foreign key
>
> It seems to work for me on my 7.3b2 system with
> alter table <table> drop constraint <constraint name>;

Premature send.. sorry

How was that FK added? How did you determine the constraint name?

How would you do that if the FK was added with the following syntax?

alter table <table>
add foreign key (<column>)
references <othertable> (<othercolumn>)
on update cascade on delete cascade;

--
Dan Langille : http://www.langille.org/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Neil Conway 2002-12-05 16:43:33 Re: 7.4 - TODO : IpcSemaphoreCreate: No space left on
Previous Message Dan Langille 2002-12-05 16:24:36 Re: 7.4 - TODO : alter table drop foreign key