From 10fb48d66de76e7dc1e36ef18af502ed9600352f Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 2 Jul 2015 16:40:55 -0400 Subject: Add an optional missing_ok argument to SQL function current_setting(). This allows convenient checking for existence of a GUC from SQL, which is particularly useful when dealing with custom variables. David Christensen, reviewed by Jeevan Chalke --- contrib/tsearch2/tsearch2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/tsearch2') diff --git a/contrib/tsearch2/tsearch2.c b/contrib/tsearch2/tsearch2.c index 143dabba407..4354c5b0904 100644 --- a/contrib/tsearch2/tsearch2.c +++ b/contrib/tsearch2/tsearch2.c @@ -363,7 +363,7 @@ tsa_tsearch2(PG_FUNCTION_ARGS) tgargs[i + 1] = trigger->tgargs[i]; tgargs[1] = pstrdup(GetConfigOptionByName("default_text_search_config", - NULL)); + NULL, false)); tgargs_old = trigger->tgargs; trigger->tgargs = tgargs; trigger->tgnargs++; -- cgit v1.2.3