aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeAgg.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2017-04-05 10:44:23 -0400
committerPeter Eisentraut <peter_e@gmx.net>2017-04-06 14:41:09 -0400
commit6f1b9aaae35bfabe2654a8e44ce226c91e7d8bd9 (patch)
tree89c253c4c192e2177bcb602da258d3831490e0d4 /src/backend/executor/nodeAgg.c
parent5f21f5292c0856536ac0724974a8bc6b296b9ef6 (diff)
downloadpostgresql-6f1b9aaae35bfabe2654a8e44ce226c91e7d8bd9.tar.gz
postgresql-6f1b9aaae35bfabe2654a8e44ce226c91e7d8bd9.zip
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>
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
0 files changed, 0 insertions, 0 deletions