Re: alter table - Mailing list pgsql-bugs

From Tom Lane
Subject Re: alter table
Date
Msg-id 12373.1048257485@sss.pgh.pa.us
Whole thread Raw
In response to alter table  ("Diego Cattelan" <netmaniac@libero.it>)
List pgsql-bugs
"Diego Cattelan" <netmaniac@libero.it> writes:
> gesart=3D>alter table a add column c integer references xxxxxxx(id);
> =20
> NOTICE: ALTER TABLE will create implicit trigger(s) for FOREIGN KEY check(s)
> ALTER TABLE
> =20
> The table xxxxxxx doesn't exist.
> =20
> Is that correct or postgreSQL should report an error ?

It is an error.  7.3.* has a bug with ALTER TABLE ADD COLUMN: any
foreign-key reference clauses are ignored.  This is fixed for 7.3.3.

            regards, tom lane

pgsql-bugs by date:

Previous
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #915: problem with returning setof with double precision values
Next
From: Tom Lane
Date:
Subject: Re: Bug #915: problem with returning setof with double precision values