mirror of
https://github.com/postgres/postgres.git
synced 2025-09-03 15:22:11 +03:00
Create a GUC variable REGEX_FLAVOR to control the type of regular
expression accepted by the regex operators, per discussion yesterday. Along the way, reduce deadlock_timeout from PGC_POSTMASTER to PGC_SIGHUP category. It is probably best to insist that all backends share the same setting, but that doesn't mean it has to be frozen at startup.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* command, configuration file, and command line options.
|
||||
* See src/backend/utils/misc/README for more information.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.113 2003/01/28 18:04:02 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/utils/misc/guc.c,v 1.114 2003/02/06 20:25:33 tgl Exp $
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
@@ -127,6 +127,7 @@ static double phony_random_seed;
|
||||
static char *client_encoding_string;
|
||||
static char *datestyle_string;
|
||||
static char *default_iso_level_string;
|
||||
static char *regex_flavor_string;
|
||||
static char *server_encoding_string;
|
||||
static char *session_authorization_string;
|
||||
static char *timezone_string;
|
||||
@@ -568,7 +569,7 @@ static struct config_int
|
||||
},
|
||||
|
||||
{
|
||||
{"deadlock_timeout", PGC_POSTMASTER}, &DeadlockTimeout,
|
||||
{"deadlock_timeout", PGC_SIGHUP}, &DeadlockTimeout,
|
||||
1000, 0, INT_MAX, NULL, NULL
|
||||
},
|
||||
|
||||
@@ -818,6 +819,11 @@ static struct config_string
|
||||
"C", locale_time_assign, NULL
|
||||
},
|
||||
|
||||
{
|
||||
{"regex_flavor", PGC_USERSET}, ®ex_flavor_string,
|
||||
"advanced", assign_regex_flavor, NULL
|
||||
},
|
||||
|
||||
{
|
||||
{"search_path", PGC_USERSET, GUC_LIST_INPUT | GUC_LIST_QUOTE},
|
||||
&namespace_search_path,
|
||||
|
Reference in New Issue
Block a user