Keep track of the last active slot in the shared ProcState array, so
authorTom Lane
Sun, 12 Nov 2000 20:51:52 +0000 (20:51 +0000)
committerTom Lane
Sun, 12 Nov 2000 20:51:52 +0000 (20:51 +0000)
commitebb0a2014930034a89ae5f4953b52c9afbf585ae
tree2c8126548b1737e6312c40aa9aecfe9f549f11cb
parentc48025e799dd51a78c82193bc9ce6c63d7e6681f
Keep track of the last active slot in the shared ProcState array, so
that search loops only have to scan that far and not through all maxBackends
entries.  This eliminates a performance penalty for setting maxBackends
much higher than the average number of active backends.  Also, eliminate
no-longer-used 'backend tag' concept.  Remove setting of environment
variables at backend start (except for CYR_RECODE), since none of them
are being examined by the backend any longer.
src/backend/commands/dbcommands.c
src/backend/postmaster/postmaster.c
src/backend/storage/ipc/sinval.c
src/backend/storage/ipc/sinvaladt.c
src/backend/utils/init/globals.c
src/backend/utils/init/postinit.c
src/include/miscadmin.h
src/include/storage/backendid.h
src/include/storage/sinval.h
src/include/storage/sinvaladt.h