summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2022-08-13 08:32:38 +0000
committerPeter Eisentraut2022-08-13 08:37:55 +0000
commitdb9ec28d6416ef97dc9d8bd2aa959661dc29ff5c (patch)
tree70d8c11355a2c27697fe369cc1293504674d577b
parente5c2feac0e09c043df8c2359688d10abe586cd52 (diff)
Add missing fields to _outConstraint()
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.
-rw-r--r--src/backend/nodes/outfuncs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index b7b48abc791..5c4258fca23 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -3561,6 +3561,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: