Use a bitmask for ExecInsertIndexTuples options
Álvaro Herrera <alvherre@kurilemu.de>
Use a bitmask for ExecInsertIndexTuples options ... instead of passing a bunch of separate booleans. Also, rearrange the argument list in a hopefully more sensible order. Discussion: https://postgr.es/m/202602111846.xpvuccb3inbx@alvherre.pgsql Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Fabrízio de Royes Mello <fabriziomello@gmail.com> (older version)
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/copyfrom.c | modified | +5 −9 |
| src/backend/executor/execIndexing.c | modified | +17 −18 |
| src/backend/executor/execReplication.c | modified | +22 −8 |
| src/backend/executor/nodeModifyTable.c | modified | +15 −13 |
| src/include/executor/executor.h | modified | +9 −6 |
Discussion
- make ExecInsertIndexTuples arguments less bad 5 messages · 2026-02-11 → 2026-02-17