Fix handling of dropped columns in logical replication
The relation attribute map was not initialized for dropped columns, leading to errors later on. Author: Petr Jelinek <petr.jelinek@2ndquadrant.com> Reported-by: Scott Milliken <scott@deltaex.com> Bug: #14769
This commit is contained in:
parent
8d9881911f
commit
0e58455dd4
@ -280,7 +280,10 @@ logicalrep_rel_open(LogicalRepRelId remoteid, LOCKMODE lockmode)
|
|||||||
int attnum;
|
int attnum;
|
||||||
|
|
||||||
if (desc->attrs[i]->attisdropped)
|
if (desc->attrs[i]->attisdropped)
|
||||||
|
{
|
||||||
|
entry->attrmap[i] = -1;
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
attnum = logicalrep_rel_att_by_name(remoterel,
|
attnum = logicalrep_rel_att_by_name(remoterel,
|
||||||
NameStr(desc->attrs[i]->attname));
|
NameStr(desc->attrs[i]->attname));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user