2004-07-01 02:52:04 +02:00
|
|
|
/*
|
|
|
|
* subtrans.h
|
|
|
|
*
|
2004-08-24 01:22:45 +02:00
|
|
|
* PostgreSQL subtransaction-log manager
|
2004-07-01 02:52:04 +02:00
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
|
2004-07-01 02:52:04 +02:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2009-01-01 18:24:05 +01:00
|
|
|
* $PostgreSQL: pgsql/src/include/access/subtrans.h,v 1.12 2009/01/01 17:23:56 momjian Exp $
|
2004-07-01 02:52:04 +02:00
|
|
|
*/
|
|
|
|
#ifndef SUBTRANS_H
|
|
|
|
#define SUBTRANS_H
|
|
|
|
|
2005-12-07 00:08:34 +01:00
|
|
|
/* Number of SLRU buffers to use for subtrans */
|
|
|
|
#define NUM_SUBTRANS_BUFFERS 32
|
|
|
|
|
2004-07-01 02:52:04 +02:00
|
|
|
extern void SubTransSetParent(TransactionId xid, TransactionId parent);
|
|
|
|
extern TransactionId SubTransGetParent(TransactionId xid);
|
|
|
|
extern TransactionId SubTransGetTopmostTransaction(TransactionId xid);
|
|
|
|
|
2005-08-21 01:26:37 +02:00
|
|
|
extern Size SUBTRANSShmemSize(void);
|
2004-07-01 02:52:04 +02:00
|
|
|
extern void SUBTRANSShmemInit(void);
|
|
|
|
extern void BootStrapSUBTRANS(void);
|
2005-06-18 00:32:51 +02:00
|
|
|
extern void StartupSUBTRANS(TransactionId oldestActiveXID);
|
2004-07-01 02:52:04 +02:00
|
|
|
extern void ShutdownSUBTRANS(void);
|
|
|
|
extern void CheckPointSUBTRANS(void);
|
|
|
|
extern void ExtendSUBTRANS(TransactionId newestXact);
|
|
|
|
extern void TruncateSUBTRANS(TransactionId oldestXact);
|
|
|
|
|
|
|
|
#endif /* SUBTRANS_H */
|