diff options
| author | Pavan Deolasee | 2014-10-31 05:15:51 +0000 |
|---|---|---|
| committer | Pavan Deolasee | 2015-04-15 05:46:38 +0000 |
| commit | e8a3eea32e7b353754842100020dde8c244cbb16 (patch) | |
| tree | b403b3923916b1a50a96b524818ec65def0043e5 /src/backend | |
| parent | 3faf5bbbcbc839a422f9d32def02c5d84c35d136 (diff) | |
Restore some GUCs which are useful in maintenance or special handling
They were taken out in XL. But at least pgxc_clean requires the
xc_maintenance_mode GUC to work properly. The other GUCs are probably not very
important from XL-perspective, but have them anyways unless we have a reason to
remove them
Diffstat (limited to 'src/backend')
| -rw-r--r-- | src/backend/pgxc/plan/planner.c | 2 | ||||
| -rw-r--r-- | src/backend/utils/misc/guc.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/src/backend/pgxc/plan/planner.c b/src/backend/pgxc/plan/planner.c index 7d6692c458..8fa92df5db 100644 --- a/src/backend/pgxc/plan/planner.c +++ b/src/backend/pgxc/plan/planner.c @@ -64,9 +64,9 @@ #include "utils/timestamp.h" #include "utils/date.h" -#ifndef XCP /* Forbid unsafe SQL statements */ bool StrictStatementChecking = true; +#ifndef XCP /* fast query shipping is enabled by default */ bool enable_fast_query_shipping = true; diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 429ab9c067..59b38e2b0a 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -212,10 +212,8 @@ static bool check_ssl(bool *newval, void **extra, GucSource source); static bool check_stage_log_stats(bool *newval, void **extra, GucSource source); static bool check_log_stats(bool *newval, void **extra, GucSource source); #ifdef PGXC -#ifndef XCP static bool check_pgxc_maintenance_mode(bool *newval, void **extra, GucSource source); #endif -#endif static bool check_canonical_path(char **newval, void **extra, GucSource source); static bool check_timezone_abbreviations(char **newval, void **extra, GucSource source); static void assign_timezone_abbreviations(const char *newval, void *extra); @@ -1541,7 +1539,6 @@ static struct config_bool ConfigureNamesBool[] = NULL, NULL, NULL }, #ifdef PGXC -#ifndef XCP { {"persistent_datanode_connections", PGC_BACKEND, DEVELOPER_OPTIONS, gettext_noop("Session never releases acquired connections."), @@ -1581,7 +1578,6 @@ static struct config_bool ConfigureNamesBool[] = check_pgxc_maintenance_mode, NULL, NULL }, #endif -#endif { {"lo_compat_privileges", PGC_SUSET, COMPAT_OPTIONS_PREVIOUS, @@ -9000,7 +8996,6 @@ check_log_stats(bool *newval, void **extra, GucSource source) } #ifdef PGXC -#ifndef XCP /* * Only a warning is printed to log. * Returning false will cause FATAL error and it will not be good. @@ -9046,7 +9041,6 @@ check_pgxc_maintenance_mode(bool *newval, void **extra, GucSource source) } } #endif -#endif static bool check_canonical_path(char **newval, void **extra, GucSource source) |
