1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-21 12:05:57 +03:00

Adjust the effective_cache_size default for standalone backends

This commit is contained in:
Bruce Momjian 2013-10-08 23:53:39 -04:00
parent 6b82f78ff9
commit 96dfa6ec0d
2 changed files with 4 additions and 2 deletions

View File

@ -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[])
ExitPostmaster(0); ExitPostmaster(0);
} }
set_default_effective_cache_size();
/* Verify that DataDir looks reasonable */ /* Verify that DataDir looks reasonable */
checkDataDir(); checkDataDir();

View File

@ -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.