From abf46ad9c7b3748e9c36cf6020206064e69cea7e Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Sat, 13 Aug 2022 10:32:38 +0200 Subject: [PATCH] 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 463b2dfa72..5da76cdc6b 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -714,6 +714,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: