Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5dfb958

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 d0dde35 commit 5dfb958

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
@@ -3478,6 +3478,8 @@ _outConstraint(StringInfo str, const Constraint *node)
34783478
WRITE_BOOL_FIELD(is_no_inherit);
34793479
WRITE_NODE_FIELD(raw_expr);
34803480
WRITE_STRING_FIELD(cooked_expr);
3481+
WRITE_BOOL_FIELD(skip_validation);
3482+
WRITE_BOOL_FIELD(initially_valid);
34813483
break;
34823484

34833485
case CONSTR_PRIMARY:

0 commit comments

Comments
 (0)