From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Zhang, Anna <azhang@verisign.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: vacuum error
Date: Fri, 8 Mar 2002 10:02:19 -0800 (PST)
Message-ID: <20020308095922.W2137-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <5511D658682A7740BA295CCF1E1233A635A868@vsvapostal2.bkup3>
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';
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: sszabo@megazone23.bigpanda.com, azhang@verisign.com
Subject: Re: vacuum error
In-Reply-To: <20020308095922.W2137-100000@megazone23.bigpanda.com>
References: <5511D658682A7740BA295CCF1E1233A635A868@vsvapostal2.bkup3> <20020308095922.W2137-100000@megazone23.bigpanda.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox