Re: Getting invalid page header in block while vacuuming PostgreSQL DB.

From: Jerry Sievers <gsievers19(at)comcast(dot)net>
To: lalit jangra <lalit(dot)j(dot)jangra(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Getting invalid page header in block while vacuuming PostgreSQL DB.
Date: 2014-09-01 17:57:17
Message-ID: 86d2bfgr5u.fsf@jerry.enova.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin pgsql-general

lalit jangra <lalit(dot)j(dot)jangra(at)gmail(dot)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(dot)consulting(at)comcast(dot)net
p: 312.241.7800

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Alanoly Andrews 2014-09-03 15:13:56 Cannot retrieve images inserted through VB and odbc, after a table reorganization.
Previous Message Albe Laurenz 2014-09-01 08:41:55 Re: invalid byte sequence for encoding "UTF8": 0x00

Browse pgsql-general by date

  From Date Subject
Next Message David G Johnston 2014-09-01 18:18:22 Re: copymanager question
Previous Message Tom Lane 2014-09-01 16:11:58 Re: Expected behaviour of \d in regexp with exponent numbers ?