diff options
| author | Peter Eisentraut | 2022-08-13 08:32:38 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2022-08-13 08:37:57 +0000 |
| commit | 5dfb9583101069e87a784db47fd99ada8ac8d6b7 (patch) | |
| tree | ad409378f2793728b8aa71c5cdcbecef63bfc21d /src | |
| parent | d0dde35ee713c7afcd24653e2cececbdf3ede0bf (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')
| -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 71a3acf2d76..c43908efda1 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -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: |
