*** a/doc/src/sgml/ref/analyze.sgml --- b/doc/src/sgml/ref/analyze.sgml *************** *** 26,33 **** ANALYZE [ VERBOSE ] [ table_and_columnswhere option can be one of: ! VERBOSE ! SKIP_LOCKED and table_and_columns is: --- 26,33 ---- where option can be one of: ! VERBOSE [ boolean ] ! SKIP_LOCKED [ boolean ] and table_and_columns is: *************** *** 95,100 **** ANALYZE [ VERBOSE ] [ table_and_columns + + boolean + + + Specifies whether the selected option should be turned on or off. + You can write TRUE, ON, or + 1 to enable the option, and FALSE, + OFF, or 0 to disable it. The + boolean value can also + be omitted, in which case TRUE is assumed. + + + + table_name *** a/doc/src/sgml/release-12.sgml --- b/doc/src/sgml/release-12.sgml *************** *** 2015,2022 **** Author: Robert Haas --> ! Allow VACUUM to take optional boolean argument ! specifications (Masahiko Sawada) --- 2015,2022 ---- --> ! Allow VACUUM and ANALYZE ! to take optional boolean argument specifications (Masahiko Sawada) *** a/src/bin/psql/tab-complete.c --- b/src/bin/psql/tab-complete.c *************** *** 2101,2106 **** psql_completion(const char *text, int start, int end) --- 2101,2108 ---- */ if (ends_with(prev_wd, '(') || ends_with(prev_wd, ',')) COMPLETE_WITH("VERBOSE", "SKIP_LOCKED"); + else if (TailMatches("VERBOSE|SKIP_LOCKED")) + COMPLETE_WITH("ON", "OFF"); } else if (HeadMatches("ANALYZE") && TailMatches("(")) /* "ANALYZE (" should be caught above, so assume we want columns */