mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-05 09:07:19 +02:00
49e9281549
The bug fixed by0874d4f3e1
caused us to question and rework the handling of subtransactions in 2PC during and at end of recovery. Patch adds checks and tests to ensure no further bugs. This effectively removes the temporary measure put in place by546c13e11b
. Author: Simon Riggs Reviewed-by: Tom Lane, Michael Paquier Discussion: http://postgr.es/m/CANP8+j+vvXmruL_i2buvdhMeVv5TQu0Hm2+C5N+kdVwHJuor8w@mail.gmail.com
31 lines
955 B
C
31 lines
955 B
C
/*
|
|
* subtrans.h
|
|
*
|
|
* PostgreSQL subtransaction-log manager
|
|
*
|
|
* Portions Copyright (c) 1996-2017, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/access/subtrans.h
|
|
*/
|
|
#ifndef SUBTRANS_H
|
|
#define SUBTRANS_H
|
|
|
|
/* Number of SLRU buffers to use for subtrans */
|
|
#define NUM_SUBTRANS_BUFFERS 32
|
|
|
|
extern void SubTransSetParent(TransactionId xid, TransactionId parent);
|
|
extern TransactionId SubTransGetParent(TransactionId xid);
|
|
extern TransactionId SubTransGetTopmostTransaction(TransactionId xid);
|
|
|
|
extern Size SUBTRANSShmemSize(void);
|
|
extern void SUBTRANSShmemInit(void);
|
|
extern void BootStrapSUBTRANS(void);
|
|
extern void StartupSUBTRANS(TransactionId oldestActiveXID);
|
|
extern void ShutdownSUBTRANS(void);
|
|
extern void CheckPointSUBTRANS(void);
|
|
extern void ExtendSUBTRANS(TransactionId newestXact);
|
|
extern void TruncateSUBTRANS(TransactionId oldestXact);
|
|
|
|
#endif /* SUBTRANS_H */
|