diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-12-08 09:46:59 +0200 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2023-12-08 09:46:59 +0200 |
commit | 15916ffb0468d0b1036ba661767fe6e1b5fb3ee8 (patch) | |
tree | 797642079eaadc1872e5ea24f27809c17f8e2b81 /src/backend/postmaster/postmaster.c | |
parent | 049ef3398d05c9dc8f48aa9a6d68440661cfeb87 (diff) | |
download | postgresql-15916ffb0468d0b1036ba661767fe6e1b5fb3ee8.tar.gz postgresql-15916ffb0468d0b1036ba661767fe6e1b5fb3ee8.zip |
Initialize ShmemVariableCache like other shmem areas
For sake of consistency.
Reviewed-by: Tristan Partin, Richard Guo
Discussion: https://www.postgresql.org/message-id/6537d63d-4bb5-46f8-9b5d-73a8ba4720ab@iki.fi
Diffstat (limited to 'src/backend/postmaster/postmaster.c')
-rw-r--r-- | src/backend/postmaster/postmaster.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index ae31d66930d..023a772c496 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -89,7 +89,6 @@ #include <pthread.h> #endif -#include "access/transam.h" #include "access/xlog.h" #include "access/xlogrecovery.h" #include "catalog/pg_control.h" @@ -513,7 +512,6 @@ typedef struct #endif void *UsedShmemSegAddr; slock_t *ShmemLock; - VariableCache ShmemVariableCache; Backend *ShmemBackendArray; #ifndef HAVE_SPINLOCKS PGSemaphore *SpinlockSemaArray; @@ -6034,7 +6032,6 @@ save_backend_variables(BackendParameters *param, Port *port, BackgroundWorker *w param->UsedShmemSegAddr = UsedShmemSegAddr; param->ShmemLock = ShmemLock; - param->ShmemVariableCache = ShmemVariableCache; param->ShmemBackendArray = ShmemBackendArray; #ifndef HAVE_SPINLOCKS @@ -6280,7 +6277,6 @@ restore_backend_variables(BackendParameters *param, Port **port, BackgroundWorke UsedShmemSegAddr = param->UsedShmemSegAddr; ShmemLock = param->ShmemLock; - ShmemVariableCache = param->ShmemVariableCache; ShmemBackendArray = param->ShmemBackendArray; #ifndef HAVE_SPINLOCKS |