mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Revise parse tree representation for VACUUM and ANALYZE.
Like commit f41551f61f
, 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
This commit is contained in:
@ -116,8 +116,12 @@ ERROR: column "does_not_exist" of relation "vacparted" does not exist
|
||||
ANALYZE (VERBOSE) does_not_exist;
|
||||
ERROR: relation "does_not_exist" does not exist
|
||||
ANALYZE (nonexistent-arg) does_not_exist;
|
||||
ERROR: unrecognized ANALYZE option "nonexistent"
|
||||
ERROR: syntax error at or near "-"
|
||||
LINE 1: ANALYZE (nonexistent-arg) does_not_exist;
|
||||
^
|
||||
ANALYZE (nonexistentarg) does_not_exit;
|
||||
ERROR: unrecognized ANALYZE option "nonexistentarg"
|
||||
LINE 1: ANALYZE (nonexistentarg) does_not_exit;
|
||||
^
|
||||
-- ensure argument order independence, and that SKIP_LOCKED on non-existing
|
||||
-- relation still errors out.
|
||||
|
@ -92,6 +92,7 @@ ANALYZE vactst (i), vacparted (does_not_exist);
|
||||
-- parenthesized syntax for ANALYZE
|
||||
ANALYZE (VERBOSE) does_not_exist;
|
||||
ANALYZE (nonexistent-arg) does_not_exist;
|
||||
ANALYZE (nonexistentarg) does_not_exit;
|
||||
|
||||
-- ensure argument order independence, and that SKIP_LOCKED on non-existing
|
||||
-- relation still errors out.
|
||||
|
Reference in New Issue
Block a user