Re: Replication lag - Mailing list pgsql-admin

From Laurenz Albe
Subject Re: Replication lag
Date
Msg-id 0903948da238870688d6a52bab616319947231c4.camel@cybertec.at
Whole thread Raw
In response to Replication lag  (Wasim Devale <wasimd60@gmail.com>)
List pgsql-admin
On Fri, 2025-05-23 at 12:43 +0530, Wasim Devale wrote:
> Reply wal and query execution on replica can coexists?

Yes, you can have both.
But there is the possibility of replication conflicts, which can
either delay replay of the WAL or lead to cacneled queries on the
standby.

To see why this is unavoidable in some cases, consider the following
scenario:

- on the standby, there is a long-running query on table A
- on the primary, somebody executes "DROP TABLE A"

The change gets replicated to the standby, but it clearly cannot be
replayed while the query is still running.

Yours,
Laurenz Albe



pgsql-admin by date:

Previous
From: Dionysios-Charalampos Vythoulkas
Date:
Subject: Re: Replication lag
Next
From: Edwin UY
Date:
Subject: Tables in public schema