Re: Replication lag

From: David Okeamah <whitneykiss741(at)gmail(dot)com>
To: Wasim Devale <wasimd60(at)gmail(dot)com>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>, Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Replication lag
Date: 2025-05-23 08:08:33
Message-ID: AS4PR03MB8506AFDDDE719261B0E1ADDDF798A@AS4PR03MB8506.eurprd03.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Query Execution and Reply WAL Coexistence in PostgreSQL

Wasim,

Thanks for your question.

Yes, PostgreSQL does support concurrent WAL replay and read query execution on replicas through its hot standby feature. By setting hot_standby = on, a replica can serve read-only queries while applying WAL files from the primary via streaming replication.

However, there are a few caveats:

* Read queries on the standby may be canceled if they conflict with recovery operations. This behavior can be tuned using parameters like max_standby_streaming_delay and hot_standby_feedback.
* Unlike Oracle GoldenGate, PostgreSQL’s native logical replication is more limited in terms of conflict resolution and cross-version replication, though tools like pglogical or Debezium can bridge those gaps for more complex use cases.

Best regards,

David Okeamah

DAVID OKEAMAH,DEVELOPER
________________________________
From: Wasim Devale <wasimd60(at)gmail(dot)com>
Sent: Friday, May 23, 2025 8:13:10 AM
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>; Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Replication lag

Hello,

Reply wal and query execution on replica can coexists?

Golden gate in oracle has this feature that they can coexists but in postgresql do we have any provision like this.

Please assist.

Thanks,
Wasim

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Dionysios-Charalampos Vythoulkas 2025-05-23 08:31:19 Re: Replication lag
Previous Message Wasim Devale 2025-05-23 07:13:10 Replication lag