Skip to content

Commit

Permalink
Again move function where we set effective_cache_size's default
Browse files Browse the repository at this point in the history
  • Loading branch information
bmomjian committed Oct 9, 2013
1 parent cbafd66 commit 6b82f78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/backend/bootstrap/bootstrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,6 @@ AuxiliaryProcessMain(int argc, char *argv[])
proc_exit(1);
}

set_default_effective_cache_size();

/*
* Identify myself via ps
*/
Expand Down Expand Up @@ -352,6 +350,8 @@ AuxiliaryProcessMain(int argc, char *argv[])
proc_exit(1);
}

set_default_effective_cache_size();

/* Validate we have been given a reasonable-looking DataDir */
Assert(DataDir);
ValidatePgVersion(DataDir);
Expand Down
4 changes: 2 additions & 2 deletions src/backend/postmaster/postmaster.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,8 +778,6 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster(1);
}

set_default_effective_cache_size();

/*
* Locate the proper configuration files and data directory, and read
* postgresql.conf for the first time.
Expand All @@ -797,6 +795,8 @@ PostmasterMain(int argc, char *argv[])
ExitPostmaster(0);
}

set_default_effective_cache_size();

/* Verify that DataDir looks reasonable */
checkDataDir();

Expand Down

0 comments on commit 6b82f78

Please sign in to comment.