Re: Question: Is it possible to get the new xlog position after query execution?

Поиск
Список
Период
Сортировка
От Christophe Pettus
Тема Re: Question: Is it possible to get the new xlog position after query execution?
Дата
Msg-id 209CB91E-B785-4BEB-8CAC-4A2FEF700D1B@thebuild.com
обсуждение исходный текст
Ответ на Re: Question: Is it possible to get the new xlog position after query execution?  (Oleg Serov <oleg@slapdash.com>)
Ответы Re: Question: Is it possible to get the new xlog position after query execution?  (Oleg Serov <oleg@slapdash.com>)
Список pgsql-general

> On Nov 8, 2021, at 10:03, Oleg Serov <oleg@slapdash.com> wrote:
> That does not seem to be feasible for our application. Using synchronous commit affects performance and really makes
replicationnot really useful... What we want to achieve is to have a consistent DB state across all connections for
masterand replica per user. If other users see something outdated, is OK.   

Synchronous commit can be turned on and off per-user:

    ALTER ROLE <role> SET synchronous_commit = 'on';

That way, the users that require it have it, but other users do not.


В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: libpq: How to cancel a COPY ... TO statement?
Следующее
От: Stefen Hillman
Дата:
Сообщение: Logical Replication - Type messages?