Re: Getting invalid page header in block while vacuuming PostgreSQL DB. - Mailing list pgsql-admin

From Jerry Sievers
Subject Re: Getting invalid page header in block while vacuuming PostgreSQL DB.
Date
Msg-id 86d2bfgr5u.fsf@jerry.enova.com
Whole thread Raw
In response to Getting invalid page header in block while vacuuming PostgreSQL DB.  (lalit jangra <lalit.j.jangra@gmail.com>)
List pgsql-admin
lalit jangra <lalit.j.jangra@gmail.com> writes:

> Hi,
>
> I am using PostgreSQL 9.2 and while trying to vacuum db named mcfdb3, i am getting below error.
>
> DETAIL:  0 index row versions were removed.
>
> 110 index pages have been deleted, 110 are currently reusable.
>
> CPU 0.02s/0.00u sec elapsed 0.03 sec.
>
> INFO:  index "i1409226645953" now contains 374682 row versions in 3267 pages
>
> DETAIL:  0 index row versions were removed.
>
> 1436 index pages have been deleted, 1436 are currently reusable.
>
> CPU 0.01s/0.00u sec elapsed 0.01 sec.
>
> vacuumdb: vacuuming of database "mcfdb3" failed: ERROR:  invalid page header in block 15871 of relation
base/17148/30976

Start by looking up that relfilenode in pg_class of the involved DB to
see if it's a table or index relation that's corrupt.

If per chance this is an index than rebuilding same may be all that's needed.
>
> DETAIL:  0 index row versions were removed.
>
> 110 index pages have been deleted, 110 are currently reusable.
>
> CPU 0.02s/0.00u sec elapsed 0.03 sec.
>
> INFO:  index "i1409226645953" now contains 374682 row versions in 3267 pages
>
> DETAIL:  0 index row versions were removed.
>
> 1436 index pages have been deleted, 1436 are currently reusable.
>
> CPU 0.01s/0.00u sec elapsed 0.01 sec.
>
> vacuumdb: vacuuming of database "mcfdb3" failed: ERROR:  invalid page header in block 15871 of relation
base/17148/30976
>
> Please help.
>  
> Regards,
> Lalit.
>

--
Jerry Sievers
Postgres DBA/Development Consulting
e: postgres.consulting@comcast.net
p: 312.241.7800


pgsql-admin by date:

Previous
From: Sanket Mehta
Date:
Subject: Re: OF TYPE without SCHEMA specified in TABLE creation interface
Next
From: Alanoly Andrews
Date:
Subject: Cannot retrieve images inserted through VB and odbc, after a table reorganization.