Skip to content

Commit 6b82f78

Browse files
committed
Again move function where we set effective_cache_size's default
1 parent cbafd66 commit 6b82f78

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/backend/bootstrap/bootstrap.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,6 @@ AuxiliaryProcessMain(int argc, char *argv[])
312312
proc_exit(1);
313313
}
314314

315-
set_default_effective_cache_size();
316-
317315
/*
318316
* Identify myself via ps
319317
*/
@@ -352,6 +350,8 @@ AuxiliaryProcessMain(int argc, char *argv[])
352350
proc_exit(1);
353351
}
354352

353+
set_default_effective_cache_size();
354+
355355
/* Validate we have been given a reasonable-looking DataDir */
356356
Assert(DataDir);
357357
ValidatePgVersion(DataDir);

src/backend/postmaster/postmaster.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,8 +778,6 @@ PostmasterMain(int argc, char *argv[])
778778
ExitPostmaster(1);
779779
}
780780

781-
set_default_effective_cache_size();
782-
783781
/*
784782
* Locate the proper configuration files and data directory, and read
785783
* postgresql.conf for the first time.
@@ -797,6 +795,8 @@ PostmasterMain(int argc, char *argv[])
797795
ExitPostmaster(0);
798796
}
799797

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

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