Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Aleksander Alekseev <aleksander@timescale.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Richard Guo <guofenglinux@gmail.com>, Dean Rasheed <dean.a.rasheed@gmail.com>
Date: 2024-04-22T05:04:04Z
Lists: pgsql-hackers
On Fri, Apr 19, 2024 at 12:47:43PM +0300, Aleksander Alekseev wrote: > Thanks. I see a few pieces of code that use special FOO_NUMBER enum > values instead of a macro. Should we refactor these pieces > accordingly? PFA another patch. I don't see why not for the places you are changing here, we can be more consistent. Now, such changes are material for v18. -- Michael
Commits
-
Use macro to define the number of enum values
- 10b721821d6d 18.0 landed
-
Use macro NUM_MERGE_MATCH_KINDS instead of '3' in MERGE code.
- 2e068db56e31 17.0 landed