dbTalk Databases Forums  

[BUGS] foreign key validation error message

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] foreign key validation error message in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Markus Bertheau
 
Posts: n/a

Default [BUGS] foreign key validation error message - 11-01-2004 , 08:52 AM






Hi,

I just got the following on 7.4:

oocms=3D# delete from objects where object_id =3D 3993;
ERROR: update or delete on "objects" violates foreign key constraint "$1" =
on "object_as_xml"
DETAIL: Key (object_id)=3D(3993) is still referenced from table "object_as=
_xml".

So, there you go:

oocms=3D# delete from object_as_xml where object_id =3D 3993;
ERROR: =D1=81=D0=B2=D1=8F=D0=B7=D1=8C "object_as_xml" =D0=BD=D0=B5 =D1=81=
=D1=83=D1=89=D0=B5=D1=81=D1=82=D0=B2=D1=83=D0=B5=D 1=82

(relation "object_as_xml" does not exist)

object_as_xml is in a schema that's not in the search path. The error
message for the foreign key violation should include the schema of the
involved relation.

--=20
Markus Bertheau <twanger (AT) bluetwanger (DOT) de>


---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.