PostgreSQL Source Code git master
Macros | Functions
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   32 /* 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_CUSTOM_MIN   24
 
 
 
#define  PGSTAT_KIND_EXPERIMENTAL   24
 

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   24

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   24

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   32 /* 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

Definition at line 61 of file pgstat_kind.h.

62{
63 return kind >= PGSTAT_KIND_BUILTIN_MIN && kind <= PGSTAT_KIND_BUILTIN_MAX;
64}
#define PGSTAT_KIND_BUILTIN_MAX
Definition: pgstat_kind.h:43
#define PGSTAT_KIND_BUILTIN_MIN
Definition: pgstat_kind.h:42

References PGSTAT_KIND_BUILTIN_MAX, and PGSTAT_KIND_BUILTIN_MIN.

Referenced by pgstat_build_snapshot_fixed(), pgstat_get_kind_info(), pgstat_is_kind_valid(), pgstat_read_statsfile(), pgstat_snapshot_fixed(), pgstat_write_statsfile(), and StatsShmemInit().

pgstat_is_kind_custom()

static bool pgstat_is_kind_custom ( PgStat_Kind  kind )
inlinestatic

Definition at line 67 of file pgstat_kind.h.

68{
69 return kind >= PGSTAT_KIND_CUSTOM_MIN && kind <= PGSTAT_KIND_CUSTOM_MAX;
70}
#define PGSTAT_KIND_CUSTOM_MAX
Definition: pgstat_kind.h:50
#define PGSTAT_KIND_CUSTOM_MIN
Definition: pgstat_kind.h:49

References PGSTAT_KIND_CUSTOM_MAX, and PGSTAT_KIND_CUSTOM_MIN.

Referenced by pgstat_get_custom_shmem_data(), pgstat_get_custom_snapshot_data(), pgstat_get_kind_info(), pgstat_is_kind_valid(), pgstat_register_kind(), and pgstat_snapshot_fixed().

AltStyle によって変換されたページ (->オリジナル) /