pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sivagami . <sivagami@worlddata.com>
To: pgsql-sql@postgresql.org
Subject: Foreign key constraint
Date: Tue, 5 Dec 2000 17:11:16 -0500
Message-ID: <006601c05f08$49e27990$43c0f4d1@worlddata.com> (raw)


Hi,

I have a question. I tried adding a Foreign Key constraint to a table via the ALTER TABLE command. But the records in the table did not match with those in the Parent table. Now my Alter table command, instead of giving me an error of kind - 'records do not match',  has gone into a kind of Deadlock between the 2 tables. I am not able to select from the tables, nor delete them, nor drop them. If I try to do any of these, I get the error saying -
" Error :  RelationBuildTriggers: 2 record(s) not found for rel invoice"

How do I overcome this error. Any ideas will be greatly appreciated.
Thanks a lot in advance.

Shiva.

view thread (2+ messages)  latest in thread

Message-ID: <006601c05f08$49e27990$43c0f4d1@worlddata.com>
Permalink:  ../006601c05f08$49e27990$43c0f4d1@worlddata.com/
Also on:    postgresql.org/message-id/006601c05f08$49e27990$43c0f4d1@worlddata.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: sivagami@worlddata.com
  Subject: Re: Foreign key constraint
  In-Reply-To: <006601c05f08$49e27990$43c0f4d1@worlddata.com>
  References: <006601c05f08$49e27990$43c0f4d1@worlddata.com>

* 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