8 trigger record(s) not found for relation managements

From: rh <reuvenharrison(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: 8 trigger record(s) not found for relation managements
Date: 2010-08-11 19:24:33
Message-ID: 229682d2-4e18-4d8c-ba77-caa287a2efa9@t2g2000yqe.googlegroups.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
I'm getting this error when trying to select from a table:
"8 trigger record(s) not found for relation managements"

Looking into this a little, I found this page
http://www.postgresql.org/docs/8.0/static/catalog-pg-trigger.html that
says:
Note: pg_class.reltriggers needs to agree with the number of triggers
found in this table for the given relation.

And, indeed:

select reltriggers FROM pg_class where relname='managements';
Returns 68

And this (16460 is the managements table oid):
select * from pg_trigger where tgrelid=16460;

Returns 60

Does anyone have an idea about what could cause this or how to fix it?

Thanks,
Reuven

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian von Bidder 2010-08-11 20:02:45 Re: Is there a way to bypass sql?
Previous Message Robert Haas 2010-08-11 19:08:12 Re: ECPG - Some errno definitions don't match to the manual