aboutsummaryrefslogtreecommitdiff
path: root/contrib/tsearch2/tsearch2.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2015-07-02 16:40:55 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2015-07-02 16:41:07 -0400
commit10fb48d66de76e7dc1e36ef18af502ed9600352f (patch)
treedbe8d354065a8342d8e4f34aa976a62ef785d815 /contrib/tsearch2/tsearch2.c
parent726117243022178e72966cbffdfb9147ec6dbbcc (diff)
downloadpostgresql-10fb48d66de76e7dc1e36ef18af502ed9600352f.tar.gz
postgresql-10fb48d66de76e7dc1e36ef18af502ed9600352f.zip
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
Diffstat (limited to 'contrib/tsearch2/tsearch2.c')
-rw-r--r--contrib/tsearch2/tsearch2.c2
1 files changed, 1 insertions, 1 deletions
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++;