Re: Suggestions for post-mortem...

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: Suggestions for post-mortem...
Date: 2006-01-25 14:29:10
Message-ID: 20060125142909.GA1391@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner wrote:
> We just had a DB die quite nastily, and have no clear idea why.
>
> Looking in the system logs shows nothing out of the ordinary, and
> looking in the db logs shows a few odd records:
>
> 2006-01-25 12:25:31 EST [mail,5017]: ERROR: failed to fetch new tuple
> for AFTER trigger
> 2006-01-25 12:26:01 EST [mail,93689]: WARNING: index "XXXX_pkey"
> contains 1416 row versions, but table contains 1410 row versions
> 2006-01-25 12:26:01 EST [mail,93689]: HINT: Rebuild the index with REINDEX.
> 2006-01-25 12:26:01 EST [mail,93689]: WARNING: index "YYYY" contains
> 1416 row versions, but table contains 1410 row versions

Seems like a rather severe bug. Maybe race condition somewhere. Note
that the trigger problem occurs 30 seconds before the VACUUM error shows
up, and being a small table I doubt a vacuum could take so long.

Can you confirm how long does the vacuum take to run? Is this problem
isolated to this one table, or does it manifest somewhere else? Do you
have other errors that may indicate a hardware problem?

It would be interesting to see where do the extra index entries point
to. To do this we would need to read the complete pg_filedump of the
index however ... and if you REINDEXed it, the evidence is already gone.

--
Alvaro Herrera http://www.advogato.org/person/alvherre
"The Postgresql hackers have what I call a "NASA space shot" mentality.
Quite refreshing in a world of "weekend drag racer" developers."
(Scott Marlowe)

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Devrim GUNDUZ 2006-01-25 15:22:22 Re: [PATCHES] Adding a --quiet option to initdb
Previous Message Andrew Dunstan 2006-01-25 14:28:04 Re: [PATCHES] Adding a --quiet option to initdb