1
0
mirror of https://github.com/postgres/postgres.git synced 2025-09-02 04:21:28 +03:00

Fix IsUnderPostmaster/EXEC_BACKEND confusion

This commit is contained in:
Alvaro Herrera
2013-01-02 18:39:20 -03:00
parent 15658911d9
commit 84f6fb81b8
3 changed files with 10 additions and 3 deletions

View File

@@ -427,6 +427,11 @@ pg_split_opts(char **argv, int *argcp, char *optstr)
* This must be called after modules have had the chance to register background
* workers in shared_preload_libraries, and before shared memory size is
* determined.
*
* Note that in EXEC_BACKEND environment, the value is passed down from
* postmaster to subprocesses via BackendParameters in SubPostmasterMain; only
* postmaster itself and processes not under postmaster control should call
* this.
*/
void
InitializeMaxBackends(void)