postgresql/src/include/nodes
Alvaro Herrera 0d83138974 Rationalize vacuuming options and parameters
We were involving the parser too much in setting up initial vacuuming
parameters.  This patch moves that responsibility elsewhere to simplify
code, and also to make future additions easier.  To do this, create a
new struct VacuumParams which is filled just prior to vacuum execution,
instead of at parse time; for user-invoked vacuuming this is set up in a
new function ExecVacuum, while autovacuum sets it up by itself.

While at it, add a new member VACOPT_SKIPTOAST to enum VacuumOption,
only set by autovacuum, which is used to disable vacuuming of the toast
table instead of the old do_toast parameter; this relieves the argument
list of vacuum() and some callees a bit.  This partially makes up for
having added more arguments in an effort to avoid having autovacuum from
constructing a VacuumStmt parse node.

Author: Michael Paquier. Some tweaks by Álvaro
Reviewed by: Robert Haas, Stephen Frost, Álvaro Herrera
2015-03-18 11:52:33 -03:00
..
bitmapset.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
execnodes.h Use the typcache to cache constraints for domain types. 2015-03-01 14:06:55 -05:00
lockoptions.h Improve representation of PlanRowMark. 2015-03-15 18:41:47 -04:00
makefuncs.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
memnodes.h Move memory context callback declarations into palloc.h. 2015-03-01 12:31:32 -05:00
nodeFuncs.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
nodes.h Allow CURRENT/SESSION_USER to be used in certain commands 2015-03-09 15:41:54 -03:00
params.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
parsenodes.h Rationalize vacuuming options and parameters 2015-03-18 11:52:33 -03:00
pg_list.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
plannodes.h Improve representation of PlanRowMark. 2015-03-15 18:41:47 -04:00
primnodes.h Remove comment claiming that PARAM_EXTERN Params always have typmod -1. 2015-03-05 13:16:27 -05:00
print.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
readfuncs.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
relation.h Support flattening of empty-FROM subqueries and one-row VALUES tables. 2015-03-11 23:18:03 -04:00
replnodes.h Update copyright for 2015 2015-01-06 11:43:47 -05:00
tidbitmap.h Use FLEXIBLE_ARRAY_MEMBER in a bunch more places. 2015-02-20 00:11:42 -05:00
value.h Update copyright for 2015 2015-01-06 11:43:47 -05:00