mirror of
https://github.com/postgres/postgres.git
synced 2026-03-13 22:28:01 -04:00
33 lines
1,006 B
C
33 lines
1,006 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* snapmgr.h
|
|
* POSTGRES snapshot manager
|
|
*
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* $PostgreSQL: pgsql/src/include/utils/snapmgr.h,v 1.1 2008/03/26 18:48:59 alvherre Exp $
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef SNAPMGR_H
|
|
#define SNAPMGR_H
|
|
|
|
#include "utils/snapshot.h"
|
|
|
|
|
|
extern PGDLLIMPORT Snapshot SerializableSnapshot;
|
|
extern PGDLLIMPORT Snapshot LatestSnapshot;
|
|
extern PGDLLIMPORT Snapshot ActiveSnapshot;
|
|
|
|
extern TransactionId TransactionXmin;
|
|
extern TransactionId RecentXmin;
|
|
extern TransactionId RecentGlobalXmin;
|
|
|
|
extern Snapshot GetTransactionSnapshot(void);
|
|
extern Snapshot GetLatestSnapshot(void);
|
|
extern Snapshot CopySnapshot(Snapshot snapshot);
|
|
extern void FreeSnapshot(Snapshot snapshot);
|
|
extern void FreeXactSnapshot(void);
|
|
|
|
#endif /* SNAPMGR_H */
|