VERBOSE is an optional keyword in PostgreSQL that increases the level of detail returned by certain utility commands. When appended to commands such as EXPLAIN, VACUUM, ANALYZE, REINDEX, and CLUSTER, PostgreSQL emits additional metadata that is normally hidden. Examples include internal expression trees in EXPLAIN, per-table vacuum statistics in VACUUM, and progress messages in ANALYZE.The keyword does not change how the command affects data; it strictly affects the amount of information reported back to the client or written to the server log. Because VERBOSE output can be lengthy, it is mainly used during development, query tuning, or database maintenance sessions when engineers need deeper insight into PostgreSQL’s processing steps. It is ignored by unsupported commands and raises a syntax error if placed where not allowed.
EXPLAIN, ANALYZE, VACUUM, CLUSTER, REINDEX, AUTOVACUUM
PostgreSQL 7.4
EXPLAIN, VACUUM, ANALYZE, CLUSTER, and REINDEX currently accept the VERBOSE option.
No. Any role that can run the base command can add the VERBOSE modifier.
The output is sent to the client session by default and also recorded in the server log when log_statement or client_min_messages permit.
Yes. For example, VACUUM (VERBOSE, ANALYZE) or EXPLAIN (ANALYZE, VERBOSE) SELECT ... are both valid.