Foreign Key constraint

From: "Sivagami (dot)" <sivagami(at)worlddata(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Foreign Key constraint
Date: 2000-12-05 22:10:35
Message-ID: 005301c05f08$3161bd40$43c0f4d1@worlddata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


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.

Browse pgsql-general by date

  From Date Subject
Next Message Franck Martin 2000-12-05 23:39:48 DBD::Pg module for Mandrake?
Previous Message Vince Vielhaber 2000-12-05 21:12:12 Re: Where are the 7.0.3 RPMS?