BUG #4535: Foreign Key Constraints are not respected - Mailing list pgsql-bugs

From PRIME
Subject BUG #4535: Foreign Key Constraints are not respected
Date
Msg-id 200811171437.mAHEbhol045115@wwwmaster.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4535
Logged by:          PRIME
Email address:      g.prime@aeschemunex.com
PostgreSQL version: 8.3.5
Operating system:   Windows XP
Description:        Foreign Key Constraints are not respected
Details:

Hello,

I had last week a problem with postgresql 8.3.4, one table named "xxxx" have
a foreign key pointing to a key (integer) of a table named "yyyy",
constraints are on these tables to have only valid "yyyy" keys in "xxxx"...
naturally...

So after one or two days of using my software (that uses Npgsql to make the
queries) i had a row in "xxxx" that points to a non present key of "yyyy"...
This is unbelivable but true.... See :
http://gildas.prime.free.fr/postgresql/postgresql.JPG

So di erase my installation and made a new one with 8.3.5, same thing
happend...

I had made a dump of my database and try to restore it in a new database,
and then restoration fails because constraints are not respected...
Un-be-li-va-ble.... :(
See : http://gildas.prime.free.fr/postgresql/constraint.JPG

Is this case already happened to somebody ?

PS1 : Sorry for my (bad) english...
PS2 : I have the database backup and the data directory if it can be
helpful.

pgsql-bugs by date:

Previous
From: "Hiroshi Saito"
Date:
Subject: Re: BUG #4167: When generating UUID using UUID-OSSP module, UUIDs are not unique on Windows
Next
From: ""
Date:
Subject: BUG #4536: raise doesn't add end of line