Fix use-after-free in parallel_vacuum_reset_dead_items
[pgsql.git] / src / test / modules / injection_points / injection_stats.h
blobc48d533b4b7ed88a7b8500deef312c310ca7b214
1 /*--------------------------------------------------------------------------
3 * injection_stats.h
4 * Definitions for statistics of injection points.
6 * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
7 * Portions Copyright (c) 1994, Regents of the University of California
9 * IDENTIFICATION
10 * src/test/modules/injection_points/injection_stats.h
12 * -------------------------------------------------------------------------
15 #ifndef INJECTION_STATS
16 #define INJECTION_STATS
18 /* GUC variable */
19 extern bool inj_stats_enabled;
21 /* injection_stats.c */
22 extern void pgstat_register_inj(void);
23 extern void pgstat_create_inj(const char *name);
24 extern void pgstat_drop_inj(const char *name);
25 extern void pgstat_report_inj(const char *name);
27 /* injection_stats_fixed.c */
28 extern void pgstat_register_inj_fixed(void);
29 extern void pgstat_report_inj_fixed(uint32 numattach,
30 uint32 numdetach,
31 uint32 numrun,
32 uint32 numcached,
33 uint32 numloaded);
35 #endif