Skip site navigation (1) Skip section navigation (2)

Re: BUG #1079: ALTER TABLE does not add foreign key

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: vova(at)densoft(dot)com(dot)ua
Cc: "PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #1079: ALTER TABLE does not add foreign key
Date: 2004-02-11 19:17:44
Message-ID: 7198.1076527064@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> ALTER TABLE tablename ADD COLUMN columnname INT CONSTRAIN cntrname 
> REFERENCES tablename2(col) 
> adds the column But it does not add the foreign key constrain.

This was fixed as of 7.3.3.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: PostgreSQL Bugs ListDate: 2004-02-11 21:32:50
Subject: BUG #1080: Ref #1045 resolved
Previous:From: Richard HuxtonDate: 2004-02-11 18:44:56
Subject: Re: BUG #1079: ALTER TABLE does not add foreign key

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group