PostgreSQL Source Code git master
|
Go to the source code of this file.
Functions | |
static bool | pgstat_is_kind_builtin (PgStat_Kind kind) |
static bool | pgstat_is_kind_custom (PgStat_Kind kind) |
#define PgStat_Kind uint32 |
Definition at line 17 of file pgstat_kind.h.
#define PGSTAT_KIND_ARCHIVER 7 |
Definition at line 35 of file pgstat_kind.h.
#define PGSTAT_KIND_BACKEND 6 /* per-backend statistics */ |
Definition at line 32 of file pgstat_kind.h.
#define PGSTAT_KIND_BGWRITER 8 |
Definition at line 36 of file pgstat_kind.h.
#define PGSTAT_KIND_BUILTIN_MAX PGSTAT_KIND_WAL |
Definition at line 43 of file pgstat_kind.h.
#define PGSTAT_KIND_BUILTIN_MIN PGSTAT_KIND_DATABASE |
Definition at line 42 of file pgstat_kind.h.
#define PGSTAT_KIND_BUILTIN_SIZE (PGSTAT_KIND_BUILTIN_MAX + 1) |
Definition at line 44 of file pgstat_kind.h.
#define PGSTAT_KIND_CHECKPOINTER 9 |
Definition at line 37 of file pgstat_kind.h.
#define PGSTAT_KIND_CUSTOM_MAX PGSTAT_KIND_MAX |
Definition at line 50 of file pgstat_kind.h.
#define PGSTAT_KIND_CUSTOM_MIN 128 |
Definition at line 49 of file pgstat_kind.h.
#define PGSTAT_KIND_CUSTOM_SIZE (PGSTAT_KIND_CUSTOM_MAX - PGSTAT_KIND_CUSTOM_MIN + 1) |
Definition at line 51 of file pgstat_kind.h.
#define PGSTAT_KIND_DATABASE 1 /* database-wide statistics */ |
Definition at line 27 of file pgstat_kind.h.
#define PGSTAT_KIND_EXPERIMENTAL 128 |
Definition at line 58 of file pgstat_kind.h.
#define PGSTAT_KIND_FUNCTION 3 /* per-function statistics */ |
Definition at line 29 of file pgstat_kind.h.
#define PGSTAT_KIND_INVALID 0 |
Definition at line 24 of file pgstat_kind.h.
#define PGSTAT_KIND_IO 10 |
Definition at line 38 of file pgstat_kind.h.
#define PGSTAT_KIND_MAX 256 /* Maximum ID allowed */ |
Definition at line 21 of file pgstat_kind.h.
#define PGSTAT_KIND_MIN 1 /* Minimum ID allowed */ |
Definition at line 20 of file pgstat_kind.h.
#define PGSTAT_KIND_RELATION 2 /* per-table statistics */ |
Definition at line 28 of file pgstat_kind.h.
#define PGSTAT_KIND_REPLSLOT 4 /* per-slot statistics */ |
Definition at line 30 of file pgstat_kind.h.
#define PGSTAT_KIND_SLRU 11 |
Definition at line 39 of file pgstat_kind.h.
#define PGSTAT_KIND_SUBSCRIPTION 5 /* per-subscription statistics */ |
Definition at line 31 of file pgstat_kind.h.
#define PGSTAT_KIND_WAL 12 |
Definition at line 40 of file pgstat_kind.h.
|
inlinestatic |
Definition at line 61 of file pgstat_kind.h.
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().
|
inlinestatic |
Definition at line 67 of file pgstat_kind.h.
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().