mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Fix logical replication with different encodings
reported by Shinoda, Noriyoshi <noriyoshi.shinoda@hpe.com>; partial patch by Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
This commit is contained in:
@@ -444,7 +444,7 @@ logicalrep_write_tuple(StringInfo out, Relation rel, HeapTuple tuple)
|
||||
outputstr = OidOutputFunctionCall(typclass->typoutput, values[i]);
|
||||
len = strlen(outputstr) + 1; /* null terminated */
|
||||
pq_sendint(out, len, 4); /* length */
|
||||
appendBinaryStringInfo(out, outputstr, len); /* data */
|
||||
pq_sendstring(out, outputstr); /* data */
|
||||
|
||||
pfree(outputstr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user