Skip to content

Commit cbafd66

Browse files
committed
Move new effective_cache_size function
Previously set_default_effective_cache_size() could not handle fork, non-fork, and bootstrap cases.
1 parent bf46524 commit cbafd66

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ AuxiliaryProcessMain(int argc, char *argv[])
312312
proc_exit(1);
313313
}
314314

315+
set_default_effective_cache_size();
316+
315317
/*
316318
* Identify myself via ps
317319
*/

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,6 +778,8 @@ PostmasterMain(int argc, char *argv[])
778778
ExitPostmaster(1);
779779
}
780780

781+
set_default_effective_cache_size();
782+
781783
/*
782784
* Locate the proper configuration files and data directory, and read
783785
* postgresql.conf for the first time.
@@ -4476,8 +4478,6 @@ SubPostmasterMain(int argc, char *argv[])
44764478
memset(&port, 0, sizeof(Port));
44774479
read_backend_variables(argv[2], &port);
44784480

4479-
set_default_effective_cache_size();
4480-
44814481
/*
44824482
* Set reference point for stack-depth checking
44834483
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy