|
|
@ -505,6 +505,9 @@ deparseInsertSql(StringInfo buf, PlannerInfo *root, Index rtindex, |
|
|
|
|
|
|
|
|
|
|
|
appendStringInfoString(buf, "INSERT INTO "); |
|
|
|
appendStringInfoString(buf, "INSERT INTO "); |
|
|
|
deparseRelation(buf, rte->relid); |
|
|
|
deparseRelation(buf, rte->relid); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (targetAttrs) |
|
|
|
|
|
|
|
{ |
|
|
|
appendStringInfoString(buf, "("); |
|
|
|
appendStringInfoString(buf, "("); |
|
|
|
|
|
|
|
|
|
|
|
first = true; |
|
|
|
first = true; |
|
|
@ -537,6 +540,9 @@ deparseInsertSql(StringInfo buf, PlannerInfo *root, Index rtindex, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
appendStringInfoString(buf, ")"); |
|
|
|
appendStringInfoString(buf, ")"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
appendStringInfoString(buf, " DEFAULT VALUES"); |
|
|
|
|
|
|
|
|
|
|
|
if (returningList) |
|
|
|
if (returningList) |
|
|
|
deparseReturningList(buf, root, rtindex, rel, returningList); |
|
|
|
deparseReturningList(buf, root, rtindex, rel, returningList); |
|
|
|