Issue (#59): Build failed using gcc-9 and 10.

The issue only occurs when compiled using -fno-common flag.
This commit is contained in:
Ibrar Ahmed
2020-11-02 11:21:47 +00:00
parent 1a82b7566d
commit 8918017134
4 changed files with 64 additions and 39 deletions

10
guc.c
View File

@@ -13,6 +13,8 @@
#include "pg_stat_monitor.h"
GucVariable conf[12];
/*
* Define (or redefine) custom GUC variables.
*/
@@ -57,7 +59,7 @@ init_guc(void)
conf[i++] = (GucVariable) {
.guc_name = "pg_stat_monitor.pgsm_normalized_query",
.guc_desc = "Selects whether save query in normalized format.",
.guc_default = 0,
.guc_default = 1,
.guc_min = 0,
.guc_max = 0,
.guc_restart = false
@@ -275,3 +277,9 @@ init_guc(void)
}
GucVariable*
get_conf(int i)
{
return &conf[i];
}