1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-22 14:32:25 +03:00

VariableCache (next XID generator) is placed in shmem.

This commit is contained in:
Vadim B. Mikheev
1998-07-21 06:17:39 +00:00
parent 224a62c5b7
commit 5afe171443
3 changed files with 50 additions and 73 deletions

View File

@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: transam.h,v 1.14 1998/02/26 04:40:30 momjian Exp $
* $Id: transam.h,v 1.15 1998/07/21 06:17:39 vadim Exp $
*
* NOTES
* Transaction System Version 101 now support proper oid
@@ -114,6 +114,24 @@ typedef struct VariableRelationContentsData
typedef VariableRelationContentsData *VariableRelationContents;
/*
* VariableCache is placed in shmem and used by backends to
* get next available XID & OID without access to
* variable relation. Actually, I would like to have two
* different on-disk storages for next XID and OID...
* But hoping that someday we will use per database OID
* generator I leaved this as is. - vadim 07/21/98
*/
typedef struct VariableCacheData
{
uint32 xid_count;
TransactionId nextXid;
uint32 oid_count; /* not implemented, yet */
Oid nextOid;
} VariableCacheData;
typedef VariableCacheData *VariableCache;
/* ----------------
* extern declarations
* ----------------