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

Commit96dfa6e

Browse files
committed
Adjust the effective_cache_size default for standalone backends
1 parent6b82f78 commit96dfa6e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

‎src/backend/postmaster/postmaster.c

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

788+
set_default_effective_cache_size();
789+
788790
if (output_config_variable!=NULL)
789791
{
790792
/*
@@ -795,8 +797,6 @@ PostmasterMain(int argc, char *argv[])
795797
ExitPostmaster(0);
796798
}
797799

798-
set_default_effective_cache_size();
799-
800800
/* Verify that DataDir looks reasonable */
801801
checkDataDir();
802802

‎src/backend/tcop/postgres.c

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

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp