Revise parse tree representation for VACUUM and ANALYZE.
Robert Haas <rhaas@postgresql.org>
Revise parse tree representation for VACUUM and ANALYZE. Like commit f41551f61f9cf4eedd5b7173f985a3bdb4d9858c, this aims to make it easier to add non-Boolean options to VACUUM (or, in this case, to ANALYZE). Instead of building up a bitmap of options directly in the parser, build up a list of DefElem objects and let ExecVacuum() sort it out; right now, we make no use of the fact that a DefElem can carry an associated value, but it will be easy to make that change in the future. Masahiko Sawada Discussion: http://postgr.es/m/CAD21AoATE4sn0jFFH3NcfUZXkU2BMbjBWB_kDj-XWYA-LXDcQA@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/vacuum.c | modified | +42 −10 |
| src/backend/parser/gram.y | modified | +42 −52 |
| src/backend/tcop/utility.c | modified | +3 −3 |
| src/include/commands/vacuum.h | modified | +16 −1 |
| src/include/nodes/parsenodes.h | modified | +7 −19 |
| src/test/regress/expected/vacuum.out | modified | +5 −1 |
| src/test/regress/sql/vacuum.sql | modified | +1 −0 |
Discussion
- Re: [HACKERS] Block level parallel vacuum 408 messages · 2018-08-14 → 2020-01-30