[COMMITTERS] pgsql: Fix logical replication between different encodings
В списке pgsql-committers по дате отправления:
| От | Peter Eisentraut |
|---|---|
| Тема | [COMMITTERS] pgsql: Fix logical replication between different encodings |
| Дата | |
| Msg-id | E1cwCNI-0007QS-3r@gemulon.postgresql.org обсуждение исходный текст |
| Список | pgsql-committers |
Fix logical replication between different encodings When sending a tuple attribute, the previous coding erroneously sent the length byte before encoding conversion, which would lead to protocol failures on the receiving side if the length did not match the following string. To fix that, use pq_sendcountedtext() for sending tuple attributes, which takes care of all of that internally. To match the API of pq_sendcountedtext(), send even text values without a trailing zero byte and have the receiving end put it in place instead. This matches how the standard FE/BE protocol behaves. Reported-by: Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp> Branch ------ master Details ------- http://git.postgresql.org/pg/commitdiff/6f1b9aaae35bfabe2654a8e44ce226c91e7d8bd9 Modified Files -------------- doc/src/sgml/protocol.sgml | 7 +++-- src/backend/replication/logical/proto.c | 10 +++---- src/test/subscription/t/005_encoding.pl | 46 +++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 8 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера