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:54 +0200 |
commit | 1f71861a85404f8417c1b60419d813f8721f445c (patch) | |
tree | 48a15e24835c98fc31e760d790a5098819c89e4f /src | |
parent | a47bf42d172a35622f5f764e663ea4f83d96c977 (diff) | |
download | postgresql-1f71861a85404f8417c1b60419d813f8721f445c.tar.gz postgresql-1f71861a85404f8417c1b60419d813f8721f445c.zip |
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 397538008aa..fa30de88c78 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -3485,6 +3485,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: |