PostgreSQL Source Code  git master
backend_progress.h
Go to the documentation of this file.
1 /* ----------
2  * backend_progress.h
3  * Command progress reporting definition.
4  *
5  * Note that this file provides the infrastructure for storing a single
6  * backend's command progress counters, without ascribing meaning to the
7  * individual fields. See commands/progress.h and system_views.sql for that.
8  *
9  * Copyright (c) 2001-2024, PostgreSQL Global Development Group
10  *
11  * src/include/utils/backend_progress.h
12  * ----------
13  */
14 #ifndef BACKEND_PROGRESS_H
15 #define BACKEND_PROGRESS_H
16 
17 
18 /* ----------
19  * Command type for progress reporting purposes
20  * ----------
21  */
22 typedef enum ProgressCommandType
23 {
32 
33 #define PGSTAT_NUM_PROGRESS_PARAM 20
34 
35 
37  Oid relid);
39 extern void pgstat_progress_incr_param(int index, int64 incr);
40 extern void pgstat_progress_parallel_incr_param(int index, int64 incr);
41 extern void pgstat_progress_update_multi_param(int nparam, const int *index,
42  const int64 *val);
43 extern void pgstat_progress_end_command(void);
44 
45 
46 #endif /* BACKEND_PROGRESS_H */
void pgstat_progress_parallel_incr_param(int index, int64 incr)
void pgstat_progress_start_command(ProgressCommandType cmdtype, Oid relid)
void pgstat_progress_incr_param(int index, int64 incr)
ProgressCommandType
@ PROGRESS_COMMAND_ANALYZE
@ PROGRESS_COMMAND_CLUSTER
@ PROGRESS_COMMAND_CREATE_INDEX
@ PROGRESS_COMMAND_VACUUM
@ PROGRESS_COMMAND_INVALID
@ PROGRESS_COMMAND_BASEBACKUP
@ PROGRESS_COMMAND_COPY
void pgstat_progress_update_param(int index, int64 val)
void pgstat_progress_update_multi_param(int nparam, const int *index, const int64 *val)
void pgstat_progress_end_command(void)
int64_t int64
Definition: c.h:482
long val
Definition: informix.c:689
unsigned int Oid
Definition: postgres_ext.h:31
Definition: type.h:96