Thanks for the answer. What about to stop postgresql server which is primary in replication and promote another server?
Best regards!
From: Kashif Zeeshan <kashi.zeeshan@xxxxxxxxx>
Hi Domen On Fri, Jul 19, 2024 at 10:57 AM Domen Šetar <domen.setar@xxxxxxx> wrote:
Yes you should use the pg_resetwal what it does is clears the write-ahead log (WAL) and optionally resets some other control information stored in the pg_control file. This function is sometimes needed if these files have become corrupted.
It should be used only as a last resort, when the server will not start due to such corruption. You can find the help from the following link Regards Kashif Zeeshan
|