Hi Team, Need some inputs here. At a customer environment we found an issue where insertion to a particular table fails with errors like – ERROR: invalid page header in block 9757828 of relation base/2403282/2403731 To me this sounds like a data corruption. To make things worse, they don’t have a pg_dump backup but VM level snapshots. As far as I know snapshots are not a reliable way of backup of database and hence shouldn’t be used. So now effectively we are left with the alternative of restoring the table from a possible data corruption. Could you tell if any of the options can be used and which one? 1.
cluster <index> on <tablename>; or 2.
SET zero_damaged_pages = on; The table is huge so please let me know if anything above or in addition will need an outage. -Utkarsh |