diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-12 20:51:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-11-12 20:51:52 +0000 |
commit | ebb0a2014930034a89ae5f4953b52c9afbf585ae (patch) | |
tree | 2c8126548b1737e6312c40aa9aecfe9f549f11cb /src/include/storage/backendid.h | |
parent | c48025e799dd51a78c82193bc9ce6c63d7e6681f (diff) |
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.
Diffstat (limited to 'src/include/storage/backendid.h')
-rw-r--r-- | src/include/storage/backendid.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/include/storage/backendid.h b/src/include/storage/backendid.h index ad7b1f079f5..22c52012f07 100644 --- a/src/include/storage/backendid.h +++ b/src/include/storage/backendid.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: backendid.h,v 1.7 2000/01/26 05:58:32 momjian Exp $ + * $Id: backendid.h,v 1.8 2000/11/12 20:51:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -18,16 +18,11 @@ * -cim 8/17/90 * ---------------- */ -typedef int16 BackendId; /* unique currently active backend +typedef int BackendId; /* unique currently active backend * identifier */ #define InvalidBackendId (-1) -typedef int32 BackendTag; /* unique backend identifier */ - -#define InvalidBackendTag (-1) - extern BackendId MyBackendId; /* backend id of this backend */ -extern BackendTag MyBackendTag; /* backend tag of this backend */ #endif /* BACKENDID_H */ |