summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Eisentraut2022-08-12 06:17:30 +0000
committerPeter Eisentraut2022-08-12 06:52:28 +0000
commitbc11a7e2f350da9ae349087a2a79d14c8927e9fa (patch)
tree16c8651bdbdd082dc9db526c9b66125e6d44d62a
parent63903546e5d6b46890de093b700ef1f0d5f9770e (diff)
Fix _outConstraint() for "identity" constraints
The set of fields printed by _outConstraint() in the CONSTR_IDENTITY case didn't match the set of fields actually used in that case. (The code was probably uncarefully copied from the CONSTR_DEFAULT case.) Fix that by using the right set of fields. Since there is no read support for this node type, this is really just for debugging output right now, so it doesn't affect anything important.
-rw-r--r--src/backend/nodes/outfuncs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c
index aca20907888..b7b48abc791 100644
--- a/src/backend/nodes/outfuncs.c
+++ b/src/backend/nodes/outfuncs.c
@@ -3552,8 +3552,7 @@ _outConstraint(StringInfo str, const Constraint *node)
case CONSTR_IDENTITY:
appendStringInfoString(str, "IDENTITY");
- WRITE_NODE_FIELD(raw_expr);
- WRITE_STRING_FIELD(cooked_expr);
+ WRITE_NODE_FIELD(options);
WRITE_CHAR_FIELD(generated_when);
break;