Re: Replication lag

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Replication lag
Дата
Msg-id 0903948da238870688d6a52bab616319947231c4.camel@cybertec.at
обсуждение исходный текст
Ответ на Replication lag  (Wasim Devale <wasimd60@gmail.com>)
Список 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 по дате отправления: