Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcbafd66

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 parentbf46524 commitcbafd66

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)

[8]ページ先頭

©2009-2025 Movatter.jp