diff options
author | Dean Rasheed <dean.a.rasheed@gmail.com> | 2024-04-19 09:40:20 +0100 |
---|---|---|
committer | Dean Rasheed <dean.a.rasheed@gmail.com> | 2024-04-19 09:40:20 +0100 |
commit | 2e068db56e31dfb510fe7416e52b7affe26f278f (patch) | |
tree | 92b4ff3bf7484da1e90108bc354574e60d88bb1d /src/include/nodes/execnodes.h | |
parent | f6e845133630fe08acf7ad640f6d8443f13b134a (diff) | |
download | postgresql-2e068db56e31dfb510fe7416e52b7affe26f278f.tar.gz postgresql-2e068db56e31dfb510fe7416e52b7affe26f278f.zip |
Use macro NUM_MERGE_MATCH_KINDS instead of '3' in MERGE code.
Code quality improvement for 0294df2f1f84.
Aleksander Alekseev, reviewed by Richard Guo.
Discussion: https://postgr.es/m/CAJ7c6TMsiaV5urU_Pq6zJ2tXPDwk69-NKVh4AMN5XrRiM7N%2BGA%40mail.gmail.com
Diffstat (limited to 'src/include/nodes/execnodes.h')
-rw-r--r-- | src/include/nodes/execnodes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/nodes/execnodes.h b/src/include/nodes/execnodes.h index fa2f70b7a48..c1a65bad2a9 100644 --- a/src/include/nodes/execnodes.h +++ b/src/include/nodes/execnodes.h @@ -545,7 +545,7 @@ typedef struct ResultRelInfo OnConflictSetState *ri_onConflict; /* for MERGE, lists of MergeActionState (one per MergeMatchKind) */ - List *ri_MergeActions[3]; + List *ri_MergeActions[NUM_MERGE_MATCH_KINDS]; /* for MERGE, expr state for checking the join condition */ ExprState *ri_MergeJoinCondition; |