Commit cbafd661 authored by Bruce Momjian's avatar Bruce Momjian

Move new effective_cache_size function

Previously set_default_effective_cache_size() could not handle fork,
non-fork, and bootstrap cases.
parent bf46524b
...@@ -312,6 +312,8 @@ AuxiliaryProcessMain(int argc, char *argv[]) ...@@ -312,6 +312,8 @@ AuxiliaryProcessMain(int argc, char *argv[])
proc_exit(1); proc_exit(1);
} }
set_default_effective_cache_size();
/* /*
* Identify myself via ps * Identify myself via ps
*/ */
......
...@@ -778,6 +778,8 @@ PostmasterMain(int argc, char *argv[]) ...@@ -778,6 +778,8 @@ 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.
...@@ -4476,8 +4478,6 @@ SubPostmasterMain(int argc, char *argv[]) ...@@ -4476,8 +4478,6 @@ SubPostmasterMain(int argc, char *argv[])
memset(&port, 0, sizeof(Port)); memset(&port, 0, sizeof(Port));
read_backend_variables(argv[2], &port); read_backend_variables(argv[2], &port);
set_default_effective_cache_size();
/* /*
* Set reference point for stack-depth checking * Set reference point for stack-depth checking
*/ */
......
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