Re: alter table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Diego Cattelan" <netmaniac(at)libero(dot)it>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: alter table
Date: 2003-03-21 14:38:05
Message-ID: 12373.1048257485@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Diego Cattelan" <netmaniac(at)libero(dot)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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-03-21 15:00:01 Re: Bug #915: problem with returning setof with double precision values
Previous Message pgsql-bugs 2003-03-21 11:57:47 Bug #915: problem with returning setof with double precision values