mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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
This commit is contained in:
@ -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++;
|
||||
|
Reference in New Issue
Block a user