From: Bob Smith <bsmith@h-e.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Errors on VACUUM
Date: Fri, 15 Mar 2002 09:26:50 -0800
Message-ID: <D603FEC4-3839-11D6-B665-0003933DD370@h-e.com> (raw)
I received the following error from a VACUUM ANALYZE:
NOTICE: FlushRelationBuffers(place, 454): block 231 is referenced
(private 0, global 4)
FATAL 1: VACUUM (vc_repair_frag): FlushRelationBuffers returned -2
and psql lost the connection right after that. This was repeatable,
after the first occurrence I re-started the postmaster and tried again,
same result. The particular table in question is static data, that is
it was originally filled in once by COPY and there were no subsequent
inserts or deletes. But I had just added a column to the table and
updated it from another table to eliminate a frequently-done join, that
was the reason for doing the VACUUM.
Since I had the text file with the complete table contents from the
original COPY, I decided to re-build the table, so next I did DROP
TABLE, and I got this:
NOTICE: Buffer Leak: [004] (freeNext=-3, freePrev=-3,
relname=place_pid, blockNum=1, flags=0xc, refcount=2 -1)
NOTICE: Buffer Leak: [005] (freeNext=-3, freePrev=-3, relname=place,
blockNum=231, flags=0xc, refcount=4 -1)
NOTICE: Buffer Leak: [008] (freeNext=-3, freePrev=-3, relname=place,
blockNum=85, flags=0xc, refcount=3 -1)
NOTICE: Buffer Leak: [011] (freeNext=-3, freePrev=-3, relname=place,
blockNum=0, flags=0xc, refcount=2 -1)
.
.
repeating about 20 more times with blockNum varying, and finally ending
with the table being dropped. I then re-built the table from scratch
and everything seems to be fine now, VACUUM no longer gives errors.
Here is my system configuration:
PostgreSQL 7.0.2
RedHat Linux 7.0
P-III 800, 768MB RAM, 80GB disk
So I'm wondering what happened here, what might have caused the original
error, if something else is potentially still corrupted, and if I should
maybe re-build the whole database to be safe?
Advice much appreciated!
Bob Smith
Hammett & Edison, Inc.
bsmith@h-e.com
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: bsmith@h-e.com
Subject: Re: Errors on VACUUM
In-Reply-To: <D603FEC4-3839-11D6-B665-0003933DD370@h-e.com>
References: <D603FEC4-3839-11D6-B665-0003933DD370@h-e.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