Fix logical decoding sendtime update

Поиск
Список
Период
Сортировка
От Shulgin, Oleksandr
Тема Fix logical decoding sendtime update
Дата
Msg-id CACACo5THwWLDJSx+vgLSB9Us9XN+K2ihnQLrzSArAgqr21s8Qw@mail.gmail.com
обсуждение исходный текст
Ответы Re: Fix logical decoding sendtime update
Список pgsql-hackers
Hi Hackers,

it turns out, that the code in WalSndWriteData is setting the timestamp of the replication message just *after* it has been sent out to the client, thus the sendtime field always reads as zero.

Attached is a trivial patch to fix this.  The physical replication path already does the correct thing apparently.

Cheers!
--
Alex

Вложения

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

Предыдущее
От: Nils Goroll
Дата:
Сообщение: Re: s_lock() seems too aggressive for machines with many sockets
Следующее
От: Andres Freund
Дата:
Сообщение: Re: s_lock() seems too aggressive for machines with many sockets