Re: vacuum error

From: "Zhang, Anna" <azhang(at)verisign(dot)com>
To: "'Stephan Szabo'" <sszabo(at)megazone23(dot)bigpanda(dot)com>, "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:49:21
Message-ID: 5511D658682A7740BA295CCF1E1233A635A869@vsvapostal2.bkup3
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Thanks Stephan! your suggestion works. I just wonder that if dropping
triggers caused such problem, this might be a postgres bug.

Anna Zhang

-----Original Message-----
From: Stephan Szabo [mailto:sszabo(at)megazone23(dot)bigpanda(dot)com]
Sent: Friday, March 08, 2002 1:02 PM
To: Zhang, Anna
Cc: 'pgsql-admin(at)postgresql(dot)org'
Subject: Re: [ADMIN] vacuum error

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';

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Stephan Szabo 2002-03-08 18:53:29 Re: vacuum error
Previous Message Stephan Szabo 2002-03-08 18:02:19 Re: vacuum error