pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: José Roberto Motta Garcia <garcia@cptec.inpe.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: ALTER TABLE ADD CONSTRAINT
Date: Thu, 19 Jul 2007 17:48:41 -0400
Message-ID: <9757.1184881721@sss.pgh.pa.us> (raw)
In-Reply-To: <469FA659.9010606@cptec.inpe.br>
References: <469FA659.9010606@cptec.inpe.br>

=?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



view thread (2+ messages)

Message-ID: <9757.1184881721@sss.pgh.pa.us>
Permalink:  ../9757.1184881721@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9757.1184881721@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, garcia@cptec.inpe.br
  Subject: Re: ALTER TABLE ADD CONSTRAINT
  In-Reply-To: <9757.1184881721@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox