diff options
| author | Tom Lane | 2004-12-29 21:36:09 +0000 |
|---|---|---|
| committer | Tom Lane | 2004-12-29 21:36:09 +0000 |
| commit | eee5abce46fec45ad40fef75b8d81e8f3ac7dda2 (patch) | |
| tree | 20ccf400cbac12e6c10b2d99ead2b9f0b1a88951 /src/include/postmaster | |
| parent | e14018dc5e76b28a11fa57c067561a68ee46a764 (diff) | |
Refactor EXEC_BACKEND code so that postmaster child processes reattach
to shared memory as soon as possible, ie, right after read_backend_variables.
The effective difference from the original code is that this happens
before instead of after read_nondefault_variables(), which loads GUC
information and is apparently capable of expanding the backend's memory
allocation more than you'd think it should. This should fix the
failure-to-attach-to-shared-memory reports we've been seeing on Windows.
Also clean up a few bits of unnecessarily grotty EXEC_BACKEND code.
Diffstat (limited to 'src/include/postmaster')
| -rw-r--r-- | src/include/postmaster/postmaster.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/postmaster/postmaster.h b/src/include/postmaster/postmaster.h index 230b58ad0f8..ce555f0aca2 100644 --- a/src/include/postmaster/postmaster.h +++ b/src/include/postmaster/postmaster.h @@ -6,7 +6,7 @@ * Portions Copyright (c) 1996-2004, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/postmaster/postmaster.h,v 1.7 2004/08/29 05:06:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/postmaster/postmaster.h,v 1.8 2004/12/29 21:36:08 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -41,6 +41,9 @@ extern void ClosePostmasterPorts(bool am_syslogger); #ifdef EXEC_BACKEND extern pid_t postmaster_forkexec(int argc, char *argv[]); extern int SubPostmasterMain(int argc, char *argv[]); + +extern size_t ShmemBackendArraySize(void); +extern void ShmemBackendArrayAllocation(void); #endif #endif /* _POSTMASTER_H */ |
