Re: [SQL] Problem: Referential Integrity Constraints lost

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>, pgsql-sql(at)postgresql(dot)org, pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [SQL] Problem: Referential Integrity Constraints lost
Date: 2002-11-07 14:55:29
Message-ID: 19207.1036680929@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Shridhar Daithankar 2002-11-07 15:03:19 Re: [HACKERS] Database replication... - Mission Critica
Previous Message Christoph Dalitz 2002-11-07 14:52:58 Re: Question about foreign key

Browse pgsql-hackers by date

  From Date Subject
Next Message Shridhar Daithankar 2002-11-07 15:03:19 Re: [HACKERS] Database replication... - Mission Critica
Previous Message Larry Rosenman 2002-11-07 14:47:33 Re: [HACKERS] PostgreSQL supported platform report and a

Browse pgsql-sql by date

  From Date Subject
Next Message Ken Kennedy 2002-11-07 15:08:17 Re: how to get the source table & field name of a view field
Previous Message Tomasz Myrta 2002-11-07 14:49:06 Re: primary keys