8000 Add missing fields to _outConstraint() · postgres/postgres@94478f4 · GitHub
[go: up one dir, main page]

Skip to content {"props":{"docsUrl":"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"}}

Commit 94478f4

Browse files
committed
Add missing fields to _outConstraint()
As of 8977952, 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.
1 parent c7bc39c commit 94478f4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/backend/nodes/outfuncs.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3884,6 +3884,8 @@ _outConstraint(StringInfo str, const Constraint *node)
38843884
WRITE_BOOL_FIELD(is_no_inherit);
38853885
WRITE_NODE_FIELD(raw_expr);
38863886
WRITE_STRING_FIELD(cooked_expr);
3887+
WRITE_BOOL_FIELD(skip_validation);
3888+
WRITE_BOOL_FIELD(initially_valid);
38873889
break;
38883890

38893891
case CONSTR_PRIMARY:

0 commit comments

Comments
 (0)
0