Revise parse tree representation for VACUUM and ANALYZE.
authorRobert Haas <rhaas@postgresql.org>
Mon, 18 Mar 2019 19:14:52 +0000 (15:14 -0400)
committerRobert Haas <rhaas@postgresql.org>
Mon, 18 Mar 2019 19:14:52 +0000 (15:14 -0400)
commit6776142a07afb4c28961f27059d800196902f5f1
treec71c15c97de920478294cba59d2f6e10d5935147
parentf41551f61f9cf4eedd5b7173f985a3bdb4d9858c
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
src/backend/commands/vacuum.c
src/backend/parser/gram.y
src/backend/tcop/utility.c
src/include/commands/vacuum.h
src/include/nodes/parsenodes.h
src/test/regress/expected/vacuum.out
src/test/regress/sql/vacuum.sql