Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id eBCDWdm66519 for ; Tue, 12 Dec 2000 08:32:39 -0500 (EST) (envelope-from pgsql-admin-owner@postgresql.org) Received: from hydra.worlddata.com (hydra.worlddata.com [209.244.192.166]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id eB5M3dt30888 for ; Tue, 5 Dec 2000 17:03:41 -0500 (EST) (envelope-from sivagami@worlddata.com) Received: from dragon ([209.244.192.67]) by hydra.worlddata.com (Netscape Messaging Server 4.15) with SMTP id G547YH00.UNS for ; Tue, 5 Dec 2000 17:03:53 -0500 Message-ID: <004801c05f07$3e0aaa30$43c0f4d1@worlddata.com> From: "Sivagami ." To: Subject: Foriegn key constraint Date: Tue, 5 Dec 2000 17:03:47 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C05EDD.552D0110" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 X-Archive-Number: 200012/67 X-Sequence-Number: 259 This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C05EDD.552D0110 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I have a question. I tried adding a Foreign Key constraint to a table via t= he ALTER TABLE command. But the records in the table did not match with tho= se 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 t= hem, 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. ------=_NextPart_000_0045_01C05EDD.552D0110 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi,
 
I have a question. I tried adding a Foreign Key constra= int to=20 a table via the ALTER TABLE command. But the records in the table did not m= atch=20 with those in the Parent table. Now my Alter table command, instead of givi= ng me=20 an error of kind - 'records do not match',  has gone into a kind = of=20 Deadlock between the 2 tables. I am not able to select from the tables, nor= =20 delete them, nor drop them. If I try to do any of these, I get the err= or=20 saying -
" Error :  RelationBuildTriggers: 2 record(s)= not=20 found for rel invoice"
 
How do I overcome this error. Any ideas will be greatly= =20 appreciated.
Thanks a lot in advance.
 
Shiva.
------=_NextPart_000_0045_01C05EDD.552D0110--