aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/init/postinit.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2001-09-07 00:27:30 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2001-09-07 00:27:30 +0000
commit863aceb54f956ca9d6d06a44244d7a1b13e99c8b (patch)
tree4a2558c54b9ab4aac79536ec9c248c26472593c9 /src/backend/utils/init/postinit.c
parent0059c4216c1e106311cd935dee2b9c42d9a7a1d3 (diff)
downloadpostgresql-863aceb54f956ca9d6d06a44244d7a1b13e99c8b.tar.gz
postgresql-863aceb54f956ca9d6d06a44244d7a1b13e99c8b.zip
Get rid of PID entries in shmem hash table; there is no longer any need
for them, and making them just wastes time during backend startup/shutdown. Also, remove compile-time MAXBACKENDS limit per long-ago proposal. You can now set MaxBackends as high as your kernel can stand without any reconfiguration/recompilation.
Diffstat (limited to 'src/backend/utils/init/postinit.c')
-rw-r--r--src/backend/utils/init/postinit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/init/postinit.c b/src/backend/utils/init/postinit.c
index edaf3893e9e..51c95fb1415 100644
--- a/src/backend/utils/init/postinit.c
+++ b/src/backend/utils/init/postinit.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.89 2001/09/06 04:57:29 ishii Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/init/postinit.c,v 1.90 2001/09/07 00:27:29 tgl Exp $
*
*
*-------------------------------------------------------------------------
@@ -281,7 +281,7 @@ InitPostgres(const char *dbname, const char *username)
InitBackendSharedInvalidationState();
- if (MyBackendId > MAXBACKENDS || MyBackendId <= 0)
+ if (MyBackendId > MaxBackends || MyBackendId <= 0)
elog(FATAL, "InitPostgres: bad backend id %d", MyBackendId);
/*