Re: self-deadlock at FATAL exit of boostrap process on read error - Mailing list pgsql-hackers

From Qingqing Zhou
Subject Re: self-deadlock at FATAL exit of boostrap process on read error
Date
Msg-id e684ht$26ss$1@news.hub.org
Whole thread Raw
In response to self-deadlock at FATAL exit of boostrap process on read error  ("Qingqing Zhou" <zhouqq@cs.toronto.edu>)
Responses Re: self-deadlock at FATAL exit of boostrap process on read error  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"Tom Lane" <tgl@sss.pgh.pa.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





pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: sort_mem logging when exceeded ...
Next
From: Tom Lane
Date:
Subject: Re: ADD/DROP INHERITS