diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2022-08-12 08:17:30 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2022-08-12 08:52:38 +0200 |
commit | f70dfbf36f1ab72b0a6eb19e766967883c894676 (patch) | |
tree | 2567293f59f91aca2767650b74cb83be87d0a18f /src | |
parent | 5afa63f0aed96a8978489bdba38ef9998bb3aef0 (diff) | |
download | postgresql-f70dfbf36f1ab72b0a6eb19e766967883c894676.tar.gz postgresql-f70dfbf36f1ab72b0a6eb19e766967883c894676.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/nodes/outfuncs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/backend/nodes/outfuncs.c b/src/backend/nodes/outfuncs.c index 7237b52e96d..0815a3a28af 100644 --- a/src/backend/nodes/outfuncs.c +++ b/src/backend/nodes/outfuncs.c @@ -3538,8 +3538,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; |