"Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote
>
> Do you have a test case to reproduce this problem?
>
According to the error message, the problem happens during reading
pg_database. I just tried to plug in this line in mdread():
+ /* pretend there is an error reading pg_database */
+ if (reln->smgr_rnode.relNode == 1262)
+ {
+ fprintf(stderr, "Ooops \n");
+ return false;
+ }
v = _mdfd_getseg(reln, blocknum, false);
And it works.
Regards,
Qingqing