Commit 96dfa6ec authored by Bruce Momjian's avatar Bruce Momjian

Adjust the effective_cache_size default for standalone backends

parent 6b82f78f
...@@ -785,6 +785,8 @@ PostmasterMain(int argc, char *argv[]) ...@@ -785,6 +785,8 @@ PostmasterMain(int argc, char *argv[])
if (!SelectConfigFiles(userDoption, progname)) if (!SelectConfigFiles(userDoption, progname))
ExitPostmaster(2); ExitPostmaster(2);
set_default_effective_cache_size();
if (output_config_variable != NULL) if (output_config_variable != NULL)
{ {
/* /*
...@@ -795,8 +797,6 @@ PostmasterMain(int argc, char *argv[]) ...@@ -795,8 +797,6 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster(0); ExitPostmaster(0);
} }
set_default_effective_cache_size();
/* Verify that DataDir looks reasonable */ /* Verify that DataDir looks reasonable */
checkDataDir(); checkDataDir();
......
...@@ -3592,6 +3592,8 @@ PostgresMain(int argc, char *argv[], ...@@ -3592,6 +3592,8 @@ PostgresMain(int argc, char *argv[],
proc_exit(1); proc_exit(1);
} }
set_default_effective_cache_size();
/* /*
* You might expect to see a setsid() call here, but it's not needed, * You might expect to see a setsid() call here, but it's not needed,
* because if we are under a postmaster then BackendInitialize() did it. * because if we are under a postmaster then BackendInitialize() did it.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment