Postgres error when adding new page - Mailing list pgsql-general

From Marco Craveiro
Subject Postgres error when adding new page
Date
Msg-id CAKRNd4yN+-yYKgYcTovc8aKO1ZLFZpYSjzMHX+vxWOit2zTTAQ@mail.gmail.com
Whole thread Raw
Responses Re: Postgres error when adding new page  (Peter Geoghegan <peter@2ndquadrant.com>)
Re: Postgres error when adding new page  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello Postgres general

We're experiencing a lot of errors when using CDash on PostgreSQL 9.1, hosted on Mac OSX 10.6.8. The actual error message is as follows:

SQL error in Cannot insert test: utility/asserter/assert_file_returns_true_for_empty_files into the database():ERROR:  failed to add old item to the right sibling while splitting block 191 of index "crc323"<br>

After some investigation, it appears the error is coming from the guts of Postgres: src/backend/access/nbtree/nbtinsert.c:1077:

if (!_bt_pgaddtup(rightpage, itemsz, item, rightoff))
{
memset(rightpage, 0, BufferGetPageSize(rbuf));
elog(ERROR, "failed to add old item to the right sibling"
" while splitting block %u of index \"%s\"",
origpagenumber, RelationGetRelationName(rel));
}
rightoff = OffsetNumberNext(rightoff);


I'm a bit stuck from here on. Is the likely reason for this problem filesystem corruption or am I barking at the wrong tree?

Many thanks for your time.

Marco
--
So young, and already so unknown -- Pauli

blog: http://mcraveiro.blogspot.com

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade: out of memory
Next
From: "Carrington, Matthew (Produban)"
Date:
Subject: Re: pg_upgrade: out of memory