Re: ALTER TABLE ADD CONSTRAINT - Mailing list pgsql-admin

From Tom Lane
Subject Re: ALTER TABLE ADD CONSTRAINT
Date
Msg-id 9757.1184881721@sss.pgh.pa.us
Whole thread Raw
In response to ALTER TABLE ADD CONSTRAINT  (José Roberto Motta Garcia <garcia@cptec.inpe.br>)
List pgsql-admin
=?ISO-8859-1?Q?Jos=E9_Roberto_Motta_Garcia?= <garcia@cptec.inpe.br> writes:
> ALTER TABLE synop
> ADD CONSTRAINT estacoes_fk
> FOREIGN KEY (id_estacao)
> REFERENCES estacoes

> Then I check the DDL and it is like this:
> ....
> CONSTRAINT estacoes_fk FOREIGN KEY (id_estacao, id_estacao) REFERENCES
> estacoes (id_estacao, id_estacao)

I can't reproduce any such misbehavior here.  What PG version is this
exactly?  What are you doing to "check the DDL"?

            regards, tom lane

pgsql-admin by date:

Previous
From: José Roberto Motta Garcia
Date:
Subject: ALTER TABLE ADD CONSTRAINT
Next
From: Dimitri Fontaine
Date:
Subject: SkyTools Londiste HowTo