mirror of https://github.com/postgres/postgres
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1006 B
34 lines
1006 B
|
18 years ago
|
/*-------------------------------------------------------------------------
|
||
|
|
*
|
||
|
18 years ago
|
* snapmgr.h
|
||
|
|
* POSTGRES snapshot manager
|
||
|
18 years ago
|
*
|
||
|
|
* Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
|
||
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||
|
|
*
|
||
|
18 years ago
|
* $PostgreSQL: pgsql/src/include/utils/snapmgr.h,v 1.1 2008/03/26 18:48:59 alvherre Exp $
|
||
|
18 years ago
|
*
|
||
|
|
*-------------------------------------------------------------------------
|
||
|
|
*/
|
||
|
18 years ago
|
#ifndef SNAPMGR_H
|
||
|
|
#define SNAPMGR_H
|
||
|
18 years ago
|
|
||
|
|
#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);
|
||
|
|
|
||
|
18 years ago
|
#endif /* SNAPMGR_H */
|