Add missing fields to _outConstraint()
authorPeter Eisentraut <[email protected]>
Sat, 13 Aug 2022 08:32:38 +0000 (10:32 +0200)
committerPeter Eisentraut <[email protected]>
Sat, 13 Aug 2022 08:32:38 +0000 (10:32 +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 463b2dfa72a6339229d9996f56a5b5e8ef621e4a..5da76cdc6ba9a1401a0b9187203ef502adc53c37 100644 (file)
@@ -714,6 +714,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: