Re: [SQL] Problem: Referential Integrity Constraints lost

From: Achilleus Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 16:38:06
Message-ID: Pine.LNX.4.44.0211071720380.7283-100000@matrix.gatewaynet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

On Thu, 7 Nov 2002, Tom Lane wrote:

> 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?

Just some of them.
I really dont know what happened.
Looking back at july backups the problem was already there.
I never played with system tables in production.
I hope to be able somehow to reproduce the problem,
or convince myself its my fault for some reason.

P.S.
I was surprized when i looked up in my english dictionary the
word "deliberately" :)

>
> regards, tom lane
>

==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel: +30-10-8981112
fax: +30-10-8981877
email: achill(at)matrix(dot)gatewaynet(dot)com
mantzios(at)softlab(dot)ece(dot)ntua(dot)gr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2002-11-07 16:40:14 Re: shell environment control within psql
Previous Message Jochem van Dieten 2002-11-07 16:33:57 Re: timezone locale fun

Browse pgsql-hackers by date

  From Date Subject
Next Message Thomas Lockhart 2002-11-07 16:38:51 CREATE TABLE/AS does not allow WITH OIDS?
Previous Message Larry Rosenman 2002-11-07 16:37:36 Re: [HACKERS] PostgreSQL supported platform report and a

Browse pgsql-sql by date

  From Date Subject
Next Message Stephan Szabo 2002-11-07 16:41:26 Re: Weird NULL behavior
Previous Message Jean-Luc Lachance 2002-11-07 16:28:55 Re: Copying a rowtype variable.