mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Report progress of streaming base backup.
This commit adds pg_stat_progress_basebackup view that reports
the progress while an application like pg_basebackup is taking
a base backup. This uses the progress reporting infrastructure
added by c16dc1aca5, adding support for streaming base backup.
Bump catversion.
Author: Fujii Masao
Reviewed-by: Kyotaro Horiguchi, Amit Langote, Sergei Kornilov
Discussion: https://postgr.es/m/9ed8b801-8215-1f3d-62d7-65bff53f6e94@oss.nttdata.com
This commit is contained in:
@@ -474,6 +474,8 @@ pg_stat_get_progress_info(PG_FUNCTION_ARGS)
|
||||
cmdtype = PROGRESS_COMMAND_CLUSTER;
|
||||
else if (pg_strcasecmp(cmd, "CREATE INDEX") == 0)
|
||||
cmdtype = PROGRESS_COMMAND_CREATE_INDEX;
|
||||
else if (pg_strcasecmp(cmd, "BASEBACKUP") == 0)
|
||||
cmdtype = PROGRESS_COMMAND_BASEBACKUP;
|
||||
else
|
||||
ereport(ERROR,
|
||||
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
|
||||
|
||||
Reference in New Issue
Block a user