mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix local/remote attribute mix-up in logical replication
This would lead to failures if local and remote tables have a different column order. The tests previously didn't catch that because they only tested the initial data copy. So add another test that exercises the apply worker. Author: Petr Jelinek <petr.jelinek@2ndquadrant.com>
This commit is contained in:
@ -402,7 +402,8 @@ slot_modify_cstrings(TupleTableSlot *slot, LogicalRepRelMapEntry *rel,
|
||||
errarg.attnum = remoteattnum;
|
||||
|
||||
getTypeInputInfo(att->atttypid, &typinput, &typioparam);
|
||||
slot->tts_values[i] = OidInputFunctionCall(typinput, values[i],
|
||||
slot->tts_values[i] = OidInputFunctionCall(typinput,
|
||||
values[remoteattnum],
|
||||
typioparam,
|
||||
att->atttypmod);
|
||||
slot->tts_isnull[i] = false;
|
||||
|
Reference in New Issue
Block a user