Re: [PATCH] Replace magic constant 3 with NUM_MERGE_MATCH_KINDS
Aleksander Alekseev <aleksander@timescale.com>
From: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Peter Eisentraut <peter@eisentraut.org>,
Richard Guo <guofenglinux@gmail.com>, Dean Rasheed <dean.a.rasheed@gmail.com>
Date: 2024-05-13T10:22:22Z
Lists: pgsql-hackers
Attachments
- v2-0001-Use-macro-to-define-the-number-of-enum-values.patch (application/octet-stream) patch v2-0001
Hi, > > 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 think this is a sensible improvement. > > But please keep the trailing commas on the last enum items. Thanks, fixed. -- Best regards, Aleksander Alekseev
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