mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Report progress of ANALYZE commands
This uses the progress reporting infrastructure added by c16dc1aca5,
adding support for ANALYZE.
Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>
Co-authored-by: Tatsuro Yamada <tatsuro.yamada.tf@nttcom.co.jp>
Reviewed-by: Julien Rouhaud, Robert Haas, Anthony Nowocien, Kyotaro Horiguchi,
Vignesh C, Amit Langote
This commit is contained in:
@@ -468,6 +468,8 @@ pg_stat_get_progress_info(PG_FUNCTION_ARGS)
|
||||
/* Translate command name into command type code. */
|
||||
if (pg_strcasecmp(cmd, "VACUUM") == 0)
|
||||
cmdtype = PROGRESS_COMMAND_VACUUM;
|
||||
else if (pg_strcasecmp(cmd, "ANALYZE") == 0)
|
||||
cmdtype = PROGRESS_COMMAND_ANALYZE;
|
||||
else if (pg_strcasecmp(cmd, "CLUSTER") == 0)
|
||||
cmdtype = PROGRESS_COMMAND_CLUSTER;
|
||||
else if (pg_strcasecmp(cmd, "CREATE INDEX") == 0)
|
||||
|
||||
Reference in New Issue
Block a user