mirror of
https://github.com/postgres/postgres.git
synced 2026-05-16 21:58:07 -04:00
def5b065ff
Also "make reformat-dat-files". The only change worthy of note is that pgindent messed up the formatting of launcher.c's struct LogicalRepWorkerId, which led me to notice that that struct wasn't used at all anymore, so I just took it out.
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
/* ----------
|
|
* backend_progress.h
|
|
* Command progress reporting definition.
|
|
*
|
|
* Note that this file provides the infrastructure for storing a single
|
|
* backend's command progress counters, without ascribing meaning to the
|
|
* individual fields. See commands/progress.h and system_views.sql for that.
|
|
*
|
|
* Copyright (c) 2001-2021, PostgreSQL Global Development Group
|
|
*
|
|
* src/include/utils/backend_progress.h
|
|
* ----------
|
|
*/
|
|
#ifndef BACKEND_PROGRESS_H
|
|
#define BACKEND_PROGRESS_H
|
|
|
|
|
|
/* ----------
|
|
* Command type for progress reporting purposes
|
|
* ----------
|
|
*/
|
|
typedef enum ProgressCommandType
|
|
{
|
|
PROGRESS_COMMAND_INVALID,
|
|
PROGRESS_COMMAND_VACUUM,
|
|
PROGRESS_COMMAND_ANALYZE,
|
|
PROGRESS_COMMAND_CLUSTER,
|
|
PROGRESS_COMMAND_CREATE_INDEX,
|
|
PROGRESS_COMMAND_BASEBACKUP,
|
|
PROGRESS_COMMAND_COPY
|
|
} ProgressCommandType;
|
|
|
|
#define PGSTAT_NUM_PROGRESS_PARAM 20
|
|
|
|
|
|
extern void pgstat_progress_start_command(ProgressCommandType cmdtype,
|
|
Oid relid);
|
|
extern void pgstat_progress_update_param(int index, int64 val);
|
|
extern void pgstat_progress_update_multi_param(int nparam, const int *index,
|
|
const int64 *val);
|
|
extern void pgstat_progress_end_command(void);
|
|
|
|
|
|
#endif /* BACKEND_PROGRESS_H */
|