diff options
| author | Peter Eisentraut <peter@eisentraut.org> | 2022-08-13 10:32:38 +0200 |
|---|---|---|
| committer | Peter Eisentraut <peter@eisentraut.org> | 2022-08-13 10:37:45 +0200 |
| commit | 2db574a2184e5e6ae289e48079e8523c9cbdc8c4 (patch) | |
| tree | 0fadf81c19db99b7202bfc2942c90ef0f8bf9c84 /src/backend/nodes/outfuncs.c | |
| parent | 08c5c6d2833bfae8a27ed7ab3f66513b735321bb (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.
Diffstat (limited to 'src/backend/nodes/outfuncs.c')
| -rw-r--r-- | src/backend/nodes/outfuncs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index d746d6fee87..58c2590698c 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -3688,6 +3688,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: |
