Add missing fields to _outConstraint()
authorPeter Eisentraut
Sat, 13 Aug 2022 08:32:38 +0000 (10:32 +0200)
committerPeter Eisentraut
Sat, 13 Aug 2022 08:37:53 +0000 (10:37 +0200)
As of 897795240cfaaed724af2f53ed2c50c9862f951f, check constraints can
be declared invalid.  But that patch didn't update _outConstraint() to
also show the relevant struct fields (which were only applicable to
foreign keys before that).  This currently only affects debugging
output, so no impact in practice.

src/backend/nodes/outfuncs.c

index 0815a3a28afc5cccc833e29981dfe0954bd98805..4547eed43bcbb0cc32121d46ec3e49f3c56aaa0d 100644 (file)
@@ -3554,6 +3554,8 @@ _outConstraint(StringInfo str, const Constraint *node)
            WRITE_BOOL_FIELD(is_no_inherit);
            WRITE_NODE_FIELD(raw_expr);
            WRITE_STRING_FIELD(cooked_expr);
+           WRITE_BOOL_FIELD(skip_validation);
+           WRITE_BOOL_FIELD(initially_valid);
            break;
 
        case CONSTR_PRIMARY: