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:38 +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 4b2c3e43062a667649f8c6c51315e94b74830c75..e9a8bea125cee31a829a1841b547d28cd32a0881 100644 (file)
@@ -3884,6 +3884,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: