PostgreSQL Source Code git master
pgstat_kind.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PgStat_Kind   uint32
 
#define PGSTAT_KIND_MIN   1 /* Minimum ID allowed */
 
#define PGSTAT_KIND_MAX   256 /* Maximum ID allowed */
 
#define PGSTAT_KIND_INVALID   0
 
#define PGSTAT_KIND_DATABASE   1 /* database-wide statistics */
 
#define PGSTAT_KIND_RELATION   2 /* per-table statistics */
 
#define PGSTAT_KIND_FUNCTION   3 /* per-function statistics */
 
#define PGSTAT_KIND_REPLSLOT   4 /* per-slot statistics */
 
#define PGSTAT_KIND_SUBSCRIPTION   5 /* per-subscription statistics */
 
#define PGSTAT_KIND_BACKEND   6 /* per-backend statistics */
 
#define PGSTAT_KIND_ARCHIVER   7
 
#define PGSTAT_KIND_BGWRITER   8
 
#define PGSTAT_KIND_CHECKPOINTER   9
 
#define PGSTAT_KIND_IO   10
 
#define PGSTAT_KIND_SLRU   11
 
#define PGSTAT_KIND_WAL   12
 
#define PGSTAT_KIND_BUILTIN_MIN   PGSTAT_KIND_DATABASE
 
#define PGSTAT_KIND_BUILTIN_MAX   PGSTAT_KIND_WAL
 
#define PGSTAT_KIND_BUILTIN_SIZE   (PGSTAT_KIND_BUILTIN_MAX + 1)
 
#define PGSTAT_KIND_CUSTOM_MIN   128
 
#define PGSTAT_KIND_CUSTOM_MAX   PGSTAT_KIND_MAX
 
#define PGSTAT_KIND_CUSTOM_SIZE   (PGSTAT_KIND_CUSTOM_MAX - PGSTAT_KIND_CUSTOM_MIN + 1)
 
#define PGSTAT_KIND_EXPERIMENTAL   128
 

Functions

static bool pgstat_is_kind_builtin (PgStat_Kind kind)
 
static bool pgstat_is_kind_custom (PgStat_Kind kind)
 

Macro Definition Documentation

◆ PgStat_Kind

#define PgStat_Kind   uint32

Definition at line 17 of file pgstat_kind.h.

◆ PGSTAT_KIND_ARCHIVER

#define PGSTAT_KIND_ARCHIVER   7

Definition at line 35 of file pgstat_kind.h.

◆ PGSTAT_KIND_BACKEND

#define PGSTAT_KIND_BACKEND   6 /* per-backend statistics */

Definition at line 32 of file pgstat_kind.h.

◆ PGSTAT_KIND_BGWRITER

#define PGSTAT_KIND_BGWRITER   8

Definition at line 36 of file pgstat_kind.h.

◆ PGSTAT_KIND_BUILTIN_MAX

#define PGSTAT_KIND_BUILTIN_MAX   PGSTAT_KIND_WAL

Definition at line 43 of file pgstat_kind.h.

◆ PGSTAT_KIND_BUILTIN_MIN

#define PGSTAT_KIND_BUILTIN_MIN   PGSTAT_KIND_DATABASE

Definition at line 42 of file pgstat_kind.h.

◆ PGSTAT_KIND_BUILTIN_SIZE

#define PGSTAT_KIND_BUILTIN_SIZE   (PGSTAT_KIND_BUILTIN_MAX + 1)

Definition at line 44 of file pgstat_kind.h.

◆ PGSTAT_KIND_CHECKPOINTER

#define PGSTAT_KIND_CHECKPOINTER   9

Definition at line 37 of file pgstat_kind.h.

◆ PGSTAT_KIND_CUSTOM_MAX

#define PGSTAT_KIND_CUSTOM_MAX   PGSTAT_KIND_MAX

Definition at line 50 of file pgstat_kind.h.

◆ PGSTAT_KIND_CUSTOM_MIN

#define PGSTAT_KIND_CUSTOM_MIN   128

Definition at line 49 of file pgstat_kind.h.

◆ PGSTAT_KIND_CUSTOM_SIZE

#define PGSTAT_KIND_CUSTOM_SIZE   (PGSTAT_KIND_CUSTOM_MAX - PGSTAT_KIND_CUSTOM_MIN + 1)

Definition at line 51 of file pgstat_kind.h.

◆ PGSTAT_KIND_DATABASE

#define PGSTAT_KIND_DATABASE   1 /* database-wide statistics */

Definition at line 27 of file pgstat_kind.h.

◆ PGSTAT_KIND_EXPERIMENTAL

#define PGSTAT_KIND_EXPERIMENTAL   128

Definition at line 58 of file pgstat_kind.h.

◆ PGSTAT_KIND_FUNCTION

#define PGSTAT_KIND_FUNCTION   3 /* per-function statistics */

Definition at line 29 of file pgstat_kind.h.

◆ PGSTAT_KIND_INVALID

#define PGSTAT_KIND_INVALID   0

Definition at line 24 of file pgstat_kind.h.

◆ PGSTAT_KIND_IO

#define PGSTAT_KIND_IO   10

Definition at line 38 of file pgstat_kind.h.

◆ PGSTAT_KIND_MAX

#define PGSTAT_KIND_MAX   256 /* Maximum ID allowed */

Definition at line 21 of file pgstat_kind.h.

◆ PGSTAT_KIND_MIN

#define PGSTAT_KIND_MIN   1 /* Minimum ID allowed */

Definition at line 20 of file pgstat_kind.h.

◆ PGSTAT_KIND_RELATION

#define PGSTAT_KIND_RELATION   2 /* per-table statistics */

Definition at line 28 of file pgstat_kind.h.

◆ PGSTAT_KIND_REPLSLOT

#define PGSTAT_KIND_REPLSLOT   4 /* per-slot statistics */

Definition at line 30 of file pgstat_kind.h.

◆ PGSTAT_KIND_SLRU

#define PGSTAT_KIND_SLRU   11

Definition at line 39 of file pgstat_kind.h.

◆ PGSTAT_KIND_SUBSCRIPTION

#define PGSTAT_KIND_SUBSCRIPTION   5 /* per-subscription statistics */

Definition at line 31 of file pgstat_kind.h.

◆ PGSTAT_KIND_WAL

#define PGSTAT_KIND_WAL   12

Definition at line 40 of file pgstat_kind.h.

Function Documentation

◆ pgstat_is_kind_builtin()

static bool pgstat_is_kind_builtin ( PgStat_Kind  kind)
inlinestatic

◆ pgstat_is_kind_custom()

static bool pgstat_is_kind_custom ( PgStat_Kind  kind)
inlinestatic