pgsql-server/src backend/postmaster/postmaster ...

From: momjian(at)postgresql(dot)org (Bruce Momjian - CVS)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server/src backend/postmaster/postmaster ...
Date: 2002-08-29 21:02:12
Message-ID: 20020829210212.BD04C4767C4@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: momjian(at)postgresql(dot)org 02/08/29 17:02:12

Modified files:
src/backend/postmaster: postmaster.c
src/backend/storage/ipc: sinval.c sinvaladt.c
src/backend/utils/init: postinit.c
src/backend/utils/misc: guc.c postgresql.conf.sample
src/include : miscadmin.h
src/include/storage: sinval.h sinvaladt.h

Log message:
This patch reserves the last superuser_reserved_connections slots for
connections by the superuser only.

This patch replaces the last patch I sent a couple of days ago.

It closes a connection that has not been authorised by a superuser if it would
leave less than the GUC variable ReservedBackends
(superuser_reserved_connections in postgres.conf) backend process slots free
in the SISeg. This differs to the first patch which only reserved the last
ReservedBackends slots in the procState array. This has made the free slot
test more expensive due to the use of a lock.

After thinking about a comment on the first patch I've also made it a fatal
error if the number of reserved slots is not less than the maximum number of
connections.

Nigel J. Andrews

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2002-08-29 21:50:36 pgsql-server/src/backend/libpq auth.c
Previous Message Bruce Momjian - CVS 2002-08-29 19:55:26 pgsql-server/contrib/tsearch README.tsearch