Use macro NUM_MERGE_MATCH_KINDS instead of '3' in MERGE code.
Dean Rasheed <dean.a.rasheed@gmail.com>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/prep/prepjointree.c | modified | +1 −1 |
| src/backend/parser/parse_merge.c | modified | +1 −1 |
| src/include/nodes/execnodes.h | modified | +1 −1 |
| src/include/nodes/primnodes.h | modified | +2 −0 |
Discussion
- [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS 11 messages · 2024-04-16 → 2024-10-01