summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut2022-08-13 08:32:38 +0000
committerPeter Eisentraut2022-08-13 08:32:38 +0000
commitabf46ad9c7b3748e9c36cf6020206064e69cea7e (patch)
tree311bc6b785e43bd3d56c4fa24926ec25eaaa4d8a /src
parent9da300128df71b8f3f2a92038aee251413735dbe (diff)
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index 463b2dfa72a..5da76cdc6ba 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: