]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Add missing fields to _outConstraint()
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 13 Aug 2022 08:32:38 +0000 (10:32 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 13 Aug 2022 08:37:54 +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 397538008aa8ee2fc0e605881503789c812e09de..fa30de88c78a4bad09bef7c3ca48c0849b47ca66 100644 (file)
@@ -3485,6 +3485,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: