postgres.git / summary / log / commit / refs
commit 5dfb9583101069e87a784db47fd99ada8ac8d6b7
Author: Peter Eisentraut <peter@eisentraut.org>
Date: Sat Aug 13 08:32:38 2022 +0000
First released in: 16.0, 10.23, 11.18, 12.13, 13.9, 14.6, 15.0
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.
src/backend/nodes/outfuncs.c | 2 ++
1 file changed, 2 insertions(+)
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:
[parent: d0dde35ee713]