Re: vacuum error

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: "Zhang, Anna" <azhang(at)verisign(dot)com>
Cc: "'pgsql-admin(at)postgresql(dot)org'" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: vacuum error
Date: 2002-03-08 18:02:19
Message-ID: 20020308095922.W2137-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


On Fri, 8 Mar 2002, Zhang, Anna wrote:

> Hi,
> I got an error when vacuum database, see below:
>
> $vacuumdb xdap
> ERROR: RelationBuildTriggers: 2 record(s) not found for rel domain.
>
> I deleted triggers that referenced domain before vacuum, is this the cause?
> How can I fix it? or It doesn't bother, It's ok to ignore such error?

It will be a problem. Update the pg_class row associated with domain to
fix the value of reltriggers, something like:
update pg_class set reltriggers=(select count(*) from pg_trigger
where tgrelid=pg_class.oid) where relname='domain';

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Zhang, Anna 2002-03-08 18:49:21 Re: vacuum error
Previous Message Charles Hauser 2002-03-08 17:04:24 ERROR: fmgr_info: function 136523800: cache lookup failed