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

Commit0c6b675

Browse files
committed
Centralize effective_cache_size default setting
1 parent96dfa6e commit0c6b675

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

‎src/backend/bootstrap/bootstrap.c

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

353-
set_default_effective_cache_size();
354-
355353
/* Validate we have been given a reasonable-looking DataDir */
356354
Assert(DataDir);
357355
ValidatePgVersion(DataDir);

‎src/backend/postmaster/postmaster.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,8 +785,6 @@ PostmasterMain(int argc, char *argv[])
785785
if (!SelectConfigFiles(userDoption,progname))
786786
ExitPostmaster(2);
787787

788-
set_default_effective_cache_size();
789-
790788
if (output_config_variable!=NULL)
791789
{
792790
/*

‎src/backend/tcop/postgres.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3592,8 +3592,6 @@ PostgresMain(int argc, char *argv[],
35923592
proc_exit(1);
35933593
}
35943594

3595-
set_default_effective_cache_size();
3596-
35973595
/*
35983596
* You might expect to see a setsid() call here, but it's not needed,
35993597
* because if we are under a postmaster then BackendInitialize() did it.

‎src/backend/utils/misc/guc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4238,6 +4238,8 @@ SelectConfigFiles(const char *userDoption, const char *progname)
42384238
*/
42394239
pg_timezone_abbrev_initialize();
42404240

4241+
set_default_effective_cache_size();
4242+
42414243
/*
42424244
* Figure out where pg_hba.conf is, and make sure the path is absolute.
42434245
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp