]> granicus.if.org Git - postgresql/blobdiff - src/backend/nodes/outfuncs.c
CREATE INDEX ... INCLUDING (column[, ...])
[postgresql] / src / backend / nodes / outfuncs.c
index f783a49ebac2129b364f8059f5a61c046e809a5e..804e39eadc46c274b4cd87255ca132c6e86ccaba 100644 (file)
@@ -2419,6 +2419,7 @@ _outIndexStmt(StringInfo str, const IndexStmt *node)
        WRITE_STRING_FIELD(accessMethod);
        WRITE_STRING_FIELD(tableSpace);
        WRITE_NODE_FIELD(indexParams);
+       WRITE_NODE_FIELD(indexIncludingParams);
        WRITE_NODE_FIELD(options);
        WRITE_NODE_FIELD(whereClause);
        WRITE_NODE_FIELD(excludeOpNames);
@@ -3155,6 +3156,7 @@ _outConstraint(StringInfo str, const Constraint *node)
                case CONSTR_PRIMARY:
                        appendStringInfoString(str, "PRIMARY_KEY");
                        WRITE_NODE_FIELD(keys);
+                       WRITE_NODE_FIELD(including);
                        WRITE_NODE_FIELD(options);
                        WRITE_STRING_FIELD(indexname);
                        WRITE_STRING_FIELD(indexspace);
@@ -3164,6 +3166,7 @@ _outConstraint(StringInfo str, const Constraint *node)
                case CONSTR_UNIQUE:
                        appendStringInfoString(str, "UNIQUE");
                        WRITE_NODE_FIELD(keys);
+                       WRITE_NODE_FIELD(including);
                        WRITE_NODE_FIELD(options);
                        WRITE_STRING_FIELD(indexname);
                        WRITE_STRING_FIELD(indexspace);