"Qingqing Zhou" <zhouqq@cs.toronto.edu> writes:
> "Jo De Haes" <jo.de_nospam_haes@indicator.be> wrote
>> CETERROR: XX001: invalid page header in block 22182 of relation
> "dunn_main"
> I suppose there is no system error happens during the period (like lost
> power). Can you attach the gdb at "b bufmgr.c:257" and print the content of
> "(PageHeader) bufBlock"?
Probably easier (especially if he's not using a debug-enabled build):
dump out the page from the disk file using pg_filedump, or even just
"dd | od -x".
regards, tom lane