X-Git-Url: http://sigaev.ru/git/gitweb.cgi?p=smlar.git;a=blobdiff_plain;f=smlar_guc.c;h=d1cae326d9c16d3d6af42b5073b15cd8205718a3;hp=f4377745148b6b45ec6d7816b2d902d151dd7d42;hb=5cb298d7226344342759d54fe32d72665315d372;hpb=ce2bbfaebe7fc10f788870660c0b090e4e92115f diff --git a/smlar_guc.c b/smlar_guc.c index f437774..d1cae32 100644 --- a/smlar_guc.c +++ b/smlar_guc.c @@ -209,9 +209,13 @@ set_smlar_limit(PG_FUNCTION_ARGS) /* 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()); }