Re: Will there be data loss between slot syncronisation

From: Muhammad Usman Khan <usman(dot)k(at)bitnine(dot)net>
To: Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Will there be data loss between slot syncronisation
Date: 2024-10-25 04:31:06
Message-ID: CAPnRvGv13EDy1m9fLpG8snO7xHim0Ti3D6fdajZDf8DnvUvwTQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,
Data loss may occur because unsynced slots may not have fully replicated
all the necessary changes from the primary.

On Thu, 24 Oct 2024 at 22:06, Nikhil Shetty <nikhil(dot)dba04(at)gmail(dot)com> wrote:

> Hi Team,
>
> As per documentation for sync_replication_slots:
>
> The nap time of the worker is tuned according to the activity on the
> primary. The slot sync worker waits for some time before the next
> synchronization, with the duration varying based on whether any slots were
> updated during the last cycle.
>
> What happens if there is a long period where the standby slot is not
> synced and there is autofailover? Will there be a data loss?
>
> Thanks,
> Nikhil
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Erik Serrano 2024-11-05 15:31:11 PostgreSQL historical database
Previous Message Sbob 2024-10-24 20:48:36 Re: Partitioned table scanning all pertitions when the where clause specifies the partition key