support 9.5
[smlar.git] / smlar_guc.c
index f437774..d1cae32 100644 (file)
@@ -209,9 +209,13 @@ set_smlar_limit(PG_FUNCTION_ARGS)
        /* init smlar guc */
        initSmlarGUC();
 
        /* init smlar guc */
        initSmlarGUC();
 
-       sprintf(buf,"%f", nlimit);      
-       set_config_option("smlar.threshold", buf, 
-                                               PGC_USERSET, PGC_S_SESSION ,GUC_ACTION_SET, true, 0);
+       sprintf(buf,"%f", nlimit);
+       set_config_option("smlar.threshold", buf,
+                                               PGC_USERSET, PGC_S_SESSION ,GUC_ACTION_SET, true, 0
+#if PG_VERSION_NUM >= 90500
+                                               ,false
+#endif
+                                               );
        PG_RETURN_FLOAT4((float4)GetSmlarLimit());
 }
 
        PG_RETURN_FLOAT4((float4)GetSmlarLimit());
 }