Re: Referential Integrity Violation not triggered - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Referential Integrity Violation not triggered
Date
Msg-id Pine.BSF.4.21.0110221910330.48572-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Referential Integrity Violation not triggered  (Keary Suska <hierophant@pcisys.net>)
List pgsql-general
On Mon, 22 Oct 2001, Keary Suska wrote:

> I transferred a db from one machine (pg 7.0.3) to another machine (7.1.3),
> by dumping data only as proper insert strings, and on the new system
> creating the database and schema. When uploading the data to the new clean
> database, the data for table "A" failed to insert due to an additional
> column that was not in the schema. The funny part is, that 90% of the other
> tables refer to this table as a foreign key, but all of the data for those
> tables inserted without a referential integrity violation. I thought maybe
> the foreign key checks didn't enable for some reason, but I tested with
> bogus inserts and everything seems to be working as expected.
>
> Is this an "undocumented feature"?

Data only dumps disable triggers. That should be mentioned in the pg_dump
documentation (it is now, I'm not sure when it was added)


pgsql-general by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: Re: Database corruption?
Next
From: Tom Lane
Date:
Subject: Re: Using an SMP machine to make multiple indices on the same table