From: Bruce Momjian Date: Wed, 9 Oct 2013 03:53:39 +0000 (-0400) Subject: Adjust the effective_cache_size default for standalone backends X-Git-Tag: REL9_4_BETA1~1078 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=96dfa6ec0d809bb49f3472921b3ed941d9bd1b8c;p=postgresql Adjust the effective_cache_size default for standalone backends --- diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index e9bf121f54..bd20e14ea5 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -785,6 +785,8 @@ PostmasterMain(int argc, char *argv[]) if (!SelectConfigFiles(userDoption, progname)) ExitPostmaster(2); + set_default_effective_cache_size(); + if (output_config_variable != NULL) { /* @@ -795,8 +797,6 @@ PostmasterMain(int argc, char *argv[]) ExitPostmaster(0); } - set_default_effective_cache_size(); - /* Verify that DataDir looks reasonable */ checkDataDir(); diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 1eaf287eec..4b2a7761af 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -3592,6 +3592,8 @@ PostgresMain(int argc, char *argv[], proc_exit(1); } + set_default_effective_cache_size(); + /* * 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.