Re: standby recovery fails (tablespace related) (tentative patch and discussion) - Mailing list pgsql-hackers

From Asim R P
Subject Re: standby recovery fails (tablespace related) (tentative patch and discussion)
Date
Msg-id CANXE4Td1udkoCX5tyBUKiax5r_qFZDwR6iG1Ymm3t2CfW9zTuw@mail.gmail.com
Whole thread Raw
In response to Re: standby recovery fails (tablespace related) (tentative patch and discussion)  (Asim R P <apraveen@pivotal.io>)
Responses Re: standby recovery fails (tablespace related) (tentative patch anddiscussion)
List pgsql-hackers
On Thu, Sep 19, 2019 at 5:29 PM Asim R P <apraveen@pivotal.io> wrote:
>
> In order to fix the test failures, we need to distinguish between a missing database directory and a missing tablespace directory.  And also add logic to forget missing directories during tablespace drop.  I am working on it.

Please find attached a solution that builds on what Paul has propose.  A hash table, similar to the invalid page hash table is used to track missing directory references.  A missing directory may be a tablespace or a database, based on whether the tablespace is found missing or the source database is found missing.  The crash recovery succeeds if the hash table is empty at the end.

Asim
Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [PATCH] src/test/modules/dummy_index -- way to test reloptionsfrom inside of access method
Next
From: Jeff Janes
Date:
Subject: WAL recycled despite logical replication slot