mirror of
https://github.com/percona/pg_stat_monitor.git
synced 2026-02-04 05:56:21 +00:00
Issue (#59): Build failed using gcc-9 and 10.
The issue only occurs when compiled using -fno-common flag.
This commit is contained in:
10
guc.c
10
guc.c
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user