PostgreSQL 16 support for PGSM

* Fixing issues with GUC initialization and function renames
    * Fixed regression issues with PG16
This commit is contained in:
Hamid Akhtar
2023-09-12 02:36:13 +05:00
committed by Muhammad Usama
parent f2228798ad
commit 9cf2fb8d56
7 changed files with 341 additions and 21 deletions

1
guc.c
View File

@@ -48,6 +48,7 @@ static bool check_overflow_targer(int *newval, void **extra, GucSource source);
void
init_guc(void)
{
pgsm_track = PGSM_TRACK_TOP;
DefineCustomIntVariable("pg_stat_monitor.pgsm_max", /* name */
"Sets the maximum size of shared memory in (MB) used for statement's metadata tracked by pg_stat_monitor.", /* short_desc */