Skip to content

Commit 96dfa6e

Browse files
committed
Adjust the effective_cache_size default for standalone backends
1 parent 6b82f78 commit 96dfa6e

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)
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