Re: logical decoding and replication of sequences

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: logical decoding and replication of sequences
Дата
Msg-id c9f394d0-fbb3-0e69-6f43-f6f396c8b703@enterprisedb.com
обсуждение исходный текст
Ответ на Re: logical decoding and replication of sequences  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Список pgsql-hackers
On 14.12.21 02:31, Tomas Vondra wrote:
> There's still one remaining problem, that I already explained in [1].
> The problem is that with this:
> 
>    BEGIN;
>    SELECT nextval('s') FROM generate_series(1,100);
>    ROLLBACK;
> 
> 
> The root cause is that pg_current_wal_lsn() uses the LogwrtResult.Write,
> which is updated by XLogFlush() - but only in RecordTransactionCommit.
> Which makes sense, because only the committed stuff is "visible".
> 
> But the non-transactional behavior of sequence decoding disagrees with
> this, because now some of the changes from aborted transactions may be
> replicated. Which means the wait_for_catchup() ends up not waiting for
> the sequence change to be replicated.

I can't think of a reason why this might be a problem.



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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: logical decoding and replication of sequences
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: logical decoding and replication of sequences