]> 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:57 +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 71a3acf2d76d3a7a7a33df3143af088a817919c6..c43908efda16b8cc5cc0083fab4dbe1f6b540ba8 100644 (file)
@@ -3478,6 +3478,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: