Re: [SQL] Problem: Referential Integrity Constraints lost - Mailing list pgsql-general

From Tom Lane
Subject Re: [SQL] Problem: Referential Integrity Constraints lost
Date
Msg-id 19207.1036680929@sss.pgh.pa.us
Whole thread Raw
In response to Re: [SQL] Problem: Referential Integrity Constraints lost  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
Responses Re: [SQL] Problem: Referential Integrity Constraints lost  (Achilleus Mantzios <achill@matrix.gatewaynet.com>)
List pgsql-general
Achilleus Mantzios <achill@matrix.gatewaynet.com> writes:
> After recreating the missing triggers should i upgrade
> to 7.2.3??

Make that "before".

I frankly suspect pilot error here.  Triggers do not simply disappear.
If you did have crash-induced corruption leading to loss of some rows
in pg_trigger, it would be exceedingly obvious because *no* operations
on the affected tables would work --- relcache would complain about the
fact that pg_class.reltriggers didn't match the number of rows in
pg_trigger.  I think the missing triggers must have been removed or
disabled deliberately.  (Which is not to say that it couldn't have been
a software bug, but you're barking up the wrong tree to blame it on a
crash.)

Did all the triggers of the affected tables disappear, or only some
of them?

            regards, tom lane

pgsql-general by date:

Previous
From: Neil Conway
Date:
Subject: Re: [HACKERS] Database replication... - Mission Critica
Next
From: Bruce Momjian
Date:
Subject: Re: parser error: 9223372036854775807