summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorMasahiko Sawada2023-07-11 03:33:54 +0000
committerMasahiko Sawada2023-07-11 03:33:54 +0000
commitf1889729dd3ab0352dc0ccc2ffcc1b1901f8e39f (patch)
tree6c82b614a2f73a9f5ab2a83c32da8cdf832d1079 /src/include/utils
parent26dd0284b98f6bf730dc1f7f7e1f917525d71eda (diff)
Add new parallel message type to progress reporting.
This commit adds a new type of parallel message 'P' to allow a parallel worker to poke at a leader to update the progress. Currently it supports only incremental progress reporting but it's possible to allow for supporting of other backend progress APIs in the future. There are no users of this new message type as of this commit. That will follow in future commits. Idea from Andres Freund. Author: Sami Imseih Reviewed by: Michael Paquier, Masahiko Sawada Discussion: https://www.postgresql.org/message-id/flat/5478DFCD-2333-401A-B2F0-0D186AB09228@amazon.com
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/backend_progress.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/backend_progress.h b/src/include/utils/backend_progress.h
index a84752ade99..70dea55fc00 100644
--- a/src/include/utils/backend_progress.h
+++ b/src/include/utils/backend_progress.h
@@ -37,6 +37,7 @@ extern void pgstat_progress_start_command(ProgressCommandType cmdtype,
Oid relid);
extern void pgstat_progress_update_param(int index, int64 val);
extern void pgstat_progress_incr_param(int index, int64 incr);
+extern void pgstat_progress_parallel_incr_param(int index, int64 incr);
extern void pgstat_progress_update_multi_param(int nparam, const int *index,
const int64 *val);
extern void pgstat_progress_end_command(void);