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

Again move function where we set effective_cache_size's default

This commit is contained in:
Bruce Momjian
2013-10-08 23:12:45 -04:00
parent cbafd6618a
commit 6b82f78ff9
2 changed files with 4 additions and 4 deletions

View File

@ -312,8 +312,6 @@ AuxiliaryProcessMain(int argc, char *argv[])
proc_exit(1); proc_exit(1);
} }
set_default_effective_cache_size();
/* /*
* Identify myself via ps * Identify myself via ps
*/ */
@ -352,6 +350,8 @@ AuxiliaryProcessMain(int argc, char *argv[])
proc_exit(1); proc_exit(1);
} }
set_default_effective_cache_size();
/* Validate we have been given a reasonable-looking DataDir */ /* Validate we have been given a reasonable-looking DataDir */
Assert(DataDir); Assert(DataDir);
ValidatePgVersion(DataDir); ValidatePgVersion(DataDir);

View File

@ -778,8 +778,6 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster(1); ExitPostmaster(1);
} }
set_default_effective_cache_size();
/* /*
* Locate the proper configuration files and data directory, and read * Locate the proper configuration files and data directory, and read
* postgresql.conf for the first time. * postgresql.conf for the first time.
@ -797,6 +795,8 @@ 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();