Fold vacuum's 'int options' parameter into VacuumParams.
Robert Haas <rhaas@postgresql.org>
Fold vacuum's 'int options' parameter into VacuumParams. Many places need both, so this allows a few functions to take one fewer parameter. More importantly, as soon as we add a VACUUM option that takes a non-Boolean parameter, we need to replace 'int options' with a struct, and it seems better to think of adding more fields to VacuumParams rather than passing around both VacuumParams and a separate struct as well. Patch by me, reviewed by Masahiko Sawada Discussion: http://postgr.es/m/CA+Tgmob6g6-s50fyv8E8he7APfwCYYJ4z0wbZC2yZeSz=26CYQ@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/heap/vacuumlazy.c | modified | +4 −4 |
| src/backend/commands/analyze.c | modified | +12 −12 |
| src/backend/commands/vacuum.c | modified | +37 −37 |
| src/backend/postmaster/autovacuum.c | modified | +5 −6 |
| src/include/access/heapam.h | modified | +1 −1 |
| src/include/commands/vacuum.h | modified | +4 −3 |
Discussion
- Re: [HACKERS] Block level parallel vacuum 408 messages · 2018-08-14 → 2020-01-30