Skip to main content

Error: invalid page header in block

Error message displayed such as: "invalid page header in block 1464 of relation"

Written by Petr Pech

A database corruption (PostgreSQL) has occurred.

👉 Specifically, a part of the data file (block) is corrupted and cannot be read by the database.


Cause

  • unexpected server shutdown

  • disk / hardware issue

  • error during data write


Resolution

Recommended approach:

  • restore the database from a backup

Possible fix (advanced):

👉 these interventions are risky and may result in data loss

Did this answer your question?