summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/backend/executor/nodeModifyTable.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c
index 0259cbf1b7..14b0d58043 100644
--- a/src/backend/executor/nodeModifyTable.c
+++ b/src/backend/executor/nodeModifyTable.c
@@ -244,6 +244,14 @@ ExecInsert(TupleTableSlot *slot,
if (IS_PGXC_COORDINATOR && resultRemoteRel)
{
ExecRemoteQueryStandard(resultRelationDesc, (RemoteQueryState *)resultRemoteRel, slot);
+
+ /*
+ * PGXCTODO: If target table uses WITH OIDS, this should be set to the Oid inserted
+ * but Oids are not consistent among nodes in Postgres-XC, so this is set to the
+ * default value InvalidOid for the time being. It corrects at least tags for all
+ * the other INSERT commands.
+ */
+ newId = InvalidOid;
}
else
#endif