I'm getting an Error
ERROR: invalid page header in block 411 of relation "t_value_time"
in my PostgreSQL database. This keeps happening on different machines. Is there a way to prevent it from happening, or at least telling PSQL to ignore the data on the invalid block and move on?
I'd rather lose the data from the block and have him skip over it, reading the rest of the data. Is there a way to tell PSQL to skip this block?
VACUUM FULL
andREINDEX
isn't strictly necessary to clear the warning. Any operation that reads the page from disk and triggers the "invalid page header" error will fix the damaged page (by re-writing it with all zeroes) ifzero_damaged_pages
is on, so you could just do a query that hits the bad page. – Arguseyed