Remove variable "concurrent" from ReindexStmt
Michael Paquier <michael@paquier.xyz>
Remove variable "concurrent" from ReindexStmt This node already handles multiple options using a bitmask, so having a separate boolean flag is not necessary. This simplifies the code a bit with less arguments to give to the reindex routines, by replacing the boolean with an equivalent bitmask value. Reviewed-by: Julien Rouhaud Discussion: https://postgr.es/m/20200902110326.GA14963@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/indexcmds.c | modified | +20 −13 |
| src/backend/nodes/copyfuncs.c | modified | +0 −1 |
| src/backend/nodes/equalfuncs.c | modified | +0 −1 |
| src/backend/parser/gram.y | modified | +8 −4 |
| src/backend/tcop/utility.c | modified | +4 −4 |
| src/include/commands/defrem.h | modified | +3 −3 |
| src/include/nodes/parsenodes.h | modified | +1 −1 |
Discussion
- Refactor ReindexStmt and its "concurrent" boolean 4 messages · 2020-09-02 → 2020-09-04