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-2021, 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);
38 extern void pgstat_progress_update_param(int index, int64 val);
39 extern void pgstat_progress_update_multi_param(int nparam, const int *index,
40  const int64 *val);
41 extern void pgstat_progress_end_command(void);
42 
43 
44 #endif /* BACKEND_PROGRESS_H */
void pgstat_progress_start_command(ProgressCommandType cmdtype, Oid relid)
void pgstat_progress_end_command(void)
unsigned int Oid
Definition: postgres_ext.h:31
Definition: type.h:89
ProgressCommandType
void pgstat_progress_update_multi_param(int nparam, const int *index, const int64 *val)
void pgstat_progress_update_param(int index, int64 val)
long val
Definition: informix.c:664