Commit 2db574a2 authored by Peter Eisentraut's avatar Peter Eisentraut

Add missing fields to _outConstraint()

As of 89779524, 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.
parent 08c5c6d2
...@@ -3688,6 +3688,8 @@ _outConstraint(StringInfo str, const Constraint *node) ...@@ -3688,6 +3688,8 @@ _outConstraint(StringInfo str, const Constraint *node)
WRITE_BOOL_FIELD(is_no_inherit); WRITE_BOOL_FIELD(is_no_inherit);
WRITE_NODE_FIELD(raw_expr); WRITE_NODE_FIELD(raw_expr);
WRITE_STRING_FIELD(cooked_expr); WRITE_STRING_FIELD(cooked_expr);
WRITE_BOOL_FIELD(skip_validation);
WRITE_BOOL_FIELD(initially_valid);
break; break;
case CONSTR_PRIMARY: case CONSTR_PRIMARY:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment