From a2410a6365d32561c8672eb680fedcccc517120e Mon Sep 17 00:00:00 2001 From: syj <904673462@qq.com> Date: Sat, 12 Dec 2020 10:37:18 +0800 Subject: [PATCH] Delete the command line option -O of gaussdb. --- src/gausskernel/process/main/main.cpp | 1 - src/gausskernel/process/postmaster/postmaster.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/src/gausskernel/process/main/main.cpp b/src/gausskernel/process/main/main.cpp index 5c795d33a..3de8c0889 100755 --- a/src/gausskernel/process/main/main.cpp +++ b/src/gausskernel/process/main/main.cpp @@ -403,7 +403,6 @@ static void help(const char* progname) printf(_("\nDeveloper options:\n")); printf(_(" -f s|i|n|m|h forbid use of some plan types\n")); printf(_(" -n do not reinitialize shared memory after abnormal exit\n")); - printf(_(" -O allow system table structure changes\n")); printf(_(" -P disable system indexes\n")); printf(_(" -t pa|pl|ex show timings after each query\n")); printf(_(" -T send SIGSTOP to all backend processes if one dies\n")); diff --git a/src/gausskernel/process/postmaster/postmaster.cpp b/src/gausskernel/process/postmaster/postmaster.cpp index e53344441..63f1b839e 100755 --- a/src/gausskernel/process/postmaster/postmaster.cpp +++ b/src/gausskernel/process/postmaster/postmaster.cpp @@ -1274,10 +1274,6 @@ int PostmasterMain(int argc, char* argv[]) ereport(FATAL, (errmsg("the options of -n is deprecated"))); break; - case 'O': - SetConfigOption("allow_system_table_mods", "true", PGC_INTERNAL, PGC_S_ARGV); - break; - case 'o': /* Other options to pass to the backend on the command line */ rc = snprintf_s(g_instance.ExtraOptions + strlen(g_instance.ExtraOptions),