mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Adjust the effective_cache_size default for standalone backends
This commit is contained in:
parent
6b82f78ff9
commit
96dfa6ec0d
@ -785,6 +785,8 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
if (!SelectConfigFiles(userDoption, progname))
|
if (!SelectConfigFiles(userDoption, progname))
|
||||||
ExitPostmaster(2);
|
ExitPostmaster(2);
|
||||||
|
|
||||||
|
set_default_effective_cache_size();
|
||||||
|
|
||||||
if (output_config_variable != NULL)
|
if (output_config_variable != NULL)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
@ -795,8 +797,6 @@ PostmasterMain(int argc, char *argv[])
|
|||||||
ExitPostmaster(0);
|
ExitPostmaster(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
set_default_effective_cache_size();
|
|
||||||
|
|
||||||
/* Verify that DataDir looks reasonable */
|
/* Verify that DataDir looks reasonable */
|
||||||
checkDataDir();
|
checkDataDir();
|
||||||
|
|
||||||
|
@ -3592,6 +3592,8 @@ PostgresMain(int argc, char *argv[],
|
|||||||
proc_exit(1);
|
proc_exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_default_effective_cache_size();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* You might expect to see a setsid() call here, but it's not needed,
|
* You might expect to see a setsid() call here, but it's not needed,
|
||||||
* because if we are under a postmaster then BackendInitialize() did it.
|
* because if we are under a postmaster then BackendInitialize() did it.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user