".partial" WAL file missing while promoting database in streaming replication.

From: Manojkumar S <manojkumar(dot)krishnamurthy(at)zohocorp(dot)com>
To: "pgsql-novice" <pgsql-novice(at)postgresql(dot)org>
Cc: "Srivathson KK" <srivathson(dot)k(at)zohocorp(dot)com>
Subject: ".partial" WAL file missing while promoting database in streaming replication.
Date: 2020-06-15 11:05:11
Message-ID: 172b7a791bd.121388bfb22150.5969883832378040935@zohocorp.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hello,

OS : Windows and Linux

Version : 10.7 and 11.7

Topic : Streaming Replication

I use streaming replication in async mode. When master gets down, slave will be promoted using a trigger file. During this process, a ".partial" file
will be created and a WAL file with the same ID will be created in a
different timeline in slave (to be promoted as master). When master comes back as slave, it will be synced to the current master. This is
the normal procedure as far as I understood.

But in some cases, ".partial" file is not getting created and peer DB which comes back as slave is unable to sync whenever this happens.. So, basically databases go out of sync when the ".partial" file is not
created . Please suggest if this happens in any scenario and how to
overcome this.

Thanks and Regards,

Manoj Kumar.

Browse pgsql-novice by date

  From Date Subject
Next Message paul.malm 2020-06-16 08:37:54 select from one table with help of another table
Previous Message Tom Lane 2020-06-13 03:18:28 Re: [EXT] Re: Does cancelling autovacuum make you lose all the work it did?