PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
subtrans.h
Go to the documentation of this file.
1 /*
2  * subtrans.h
3  *
4  * PostgreSQL subtransaction-log manager
5  *
6  * Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * src/include/access/subtrans.h
10  */
11 #ifndef SUBTRANS_H
12 #define SUBTRANS_H
13 
14 /* Number of SLRU buffers to use for subtrans */
15 #define NUM_SUBTRANS_BUFFERS 32
16 
17 extern void SubTransSetParent(TransactionId xid, TransactionId parent, bool overwriteOK);
20 
21 extern Size SUBTRANSShmemSize(void);
22 extern void SUBTRANSShmemInit(void);
23 extern void BootStrapSUBTRANS(void);
24 extern void StartupSUBTRANS(TransactionId oldestActiveXID);
25 extern void ShutdownSUBTRANS(void);
26 extern void CheckPointSUBTRANS(void);
27 extern void ExtendSUBTRANS(TransactionId newestXact);
28 extern void TruncateSUBTRANS(TransactionId oldestXact);
29 
30 #endif /* SUBTRANS_H */
uint32 TransactionId
Definition: c.h:394
void SUBTRANSShmemInit(void)
Definition: subtrans.c:179
TransactionId SubTransGetTopmostTransaction(TransactionId xid)
Definition: subtrans.c:147
void CheckPointSUBTRANS(void)
Definition: subtrans.c:288
TransactionId SubTransGetParent(TransactionId xid)
Definition: subtrans.c:106
void BootStrapSUBTRANS(void)
Definition: subtrans.c:200
void ExtendSUBTRANS(TransactionId newestXact)
Definition: subtrans.c:312
void SubTransSetParent(TransactionId xid, TransactionId parent, bool overwriteOK)
Definition: subtrans.c:76
Size SUBTRANSShmemSize(void)
Definition: subtrans.c:173
size_t Size
Definition: c.h:353
void StartupSUBTRANS(TransactionId oldestActiveXID)
Definition: subtrans.c:238
void TruncateSUBTRANS(TransactionId oldestXact)
Definition: subtrans.c:342
void ShutdownSUBTRANS(void)
Definition: subtrans.c:271