summaryrefslogtreecommitdiff
path: root/src/include/access/transam.h
diff options
context:
space:
mode:
authorHeikki Linnakangas2023-12-08 07:47:15 +0000
committerHeikki Linnakangas2023-12-08 07:47:15 +0000
commitb31ba5310b5176402b60abc0454a033b1210ab75 (patch)
tree664161b9838a21c86e2402dc48f73d1336936270 /src/include/access/transam.h
parent15916ffb0468d0b1036ba661767fe6e1b5fb3ee8 (diff)
Rename ShmemVariableCache to TransamVariables
The old name was misleading: It's not a cache, the values kept in the struct are the authoritative source. Reviewed-by: Tristan Partin, Richard Guo Discussion: https://www.postgresql.org/message-id/[email protected]
Diffstat (limited to 'src/include/access/transam.h')
-rw-r--r--src/include/access/transam.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/include/access/transam.h b/src/include/access/transam.h
index a4654f6c31b..eef2b2cdbea 100644
--- a/src/include/access/transam.h
+++ b/src/include/access/transam.h
@@ -197,7 +197,7 @@ FullTransactionIdAdvance(FullTransactionId *dest)
#define FirstNormalObjectId 16384
/*
- * VariableCache is a data structure in shared memory that is used to track
+ * TransamVariables is a data structure in shared memory that is used to track
* OID and XID assignment state. For largely historical reasons, there is
* just one struct with different fields that are protected by different
* LWLocks.
@@ -206,7 +206,7 @@ FullTransactionIdAdvance(FullTransactionId *dest)
* used just to generate useful messages when xidWarnLimit or xidStopLimit
* are exceeded.
*/
-typedef struct VariableCacheData
+typedef struct TransamVariablesData
{
/*
* These fields are protected by OidGenLock.
@@ -252,9 +252,7 @@ typedef struct VariableCacheData
*/
TransactionId oldestClogXid; /* oldest it's safe to look up in clog */
-} VariableCacheData;
-
-typedef VariableCacheData *VariableCache;
+} TransamVariablesData;
/* ----------------
@@ -266,7 +264,7 @@ typedef VariableCacheData *VariableCache;
extern bool TransactionStartedDuringRecovery(void);
/* in transam/varsup.c */
-extern PGDLLIMPORT VariableCache ShmemVariableCache;
+extern PGDLLIMPORT TransamVariablesData *TransamVariables;
/*
* prototypes for functions in transam/transam.c