pgsql: Fix timestamp of sent message for write context in logical decod
В списке pgsql-committers по дате отправления:
| От | Michael Paquier |
|---|---|
| Тема | pgsql: Fix timestamp of sent message for write context in logical decod |
| Дата | |
| Msg-id | E1iSFVy-0004mB-Ib@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Fix timestamp of sent message for write context in logical decoding When sending data for logical decoding using the streaming replication protocol via a WAL sender, the timestamp of the sent write message is allocated at the beginning of the message when preparing for the write, and actually computed when the write message is ready to be sent. The timestamp was getting computed after sending the message. This impacts anything using logical decoding, causing for example logical replication to report mostly NULL for last_msg_send_time in pg_stat_subscription. This commit makes sure that the timestamp is computed before sending the message. This is wrong since 5a991ef, so backpatch down to 9.4. Author: Jeff Janes Discussion: https://postgr.es/m/CAMkU=1z=WMn8jt7iEdC5sYNaPgAgOASb_OW5JYv-vMdYaJSL-w@mail.gmail.com Backpatch-through: 9.4 Branch ------ REL_11_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/cb6d7f9855e9902d5a6aab000f79b74c14a5b885 Modified Files -------------- src/backend/replication/walsender.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера