diff options
| author | Peter Eisentraut | 2000-11-21 21:16:06 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2000-11-21 21:16:06 +0000 |
| commit | a70e74b060ab2769523ad831f571cb80122121d3 (patch) | |
| tree | 95e04cfd344db47857c4aecc3308092d5df01f3d /src/include/access | |
| parent | 040bb787bcf840e5a1fc49fccff185a8274bccae (diff) | |
Put external declarations into header files.
Diffstat (limited to 'src/include/access')
| -rw-r--r-- | src/include/access/gist.h | 5 | ||||
| -rw-r--r-- | src/include/access/hash.h | 9 | ||||
| -rw-r--r-- | src/include/access/heapam.h | 7 | ||||
| -rw-r--r-- | src/include/access/nbtree.h | 7 | ||||
| -rw-r--r-- | src/include/access/rtree.h | 7 | ||||
| -rw-r--r-- | src/include/access/transam.h | 3 | ||||
| -rw-r--r-- | src/include/access/xact.h | 7 | ||||
| -rw-r--r-- | src/include/access/xlog.h | 21 | ||||
| -rw-r--r-- | src/include/access/xlogutils.h | 1 |
9 files changed, 59 insertions, 8 deletions
diff --git a/src/include/access/gist.h b/src/include/access/gist.h index 1297b02ff01..c033d4c3d08 100644 --- a/src/include/access/gist.h +++ b/src/include/access/gist.h @@ -15,6 +15,7 @@ #include "access/itup.h" #include "access/relscan.h" #include "access/sdir.h" +#include "access/xlog.h" /* ** You can have as many strategies as you please in GiSTs, as @@ -191,6 +192,10 @@ extern void gistdentryinit(GISTSTATE *giststate, GISTENTRY *e, char *pr, Relation r, Page pg, OffsetNumber o, int b, bool l); extern StrategyNumber RelationGetGISTStrategy(Relation, AttrNumber, RegProcedure); +extern void gist_redo(XLogRecPtr lsn, XLogRecord *record); +extern void gist_undo(XLogRecPtr lsn, XLogRecord *record); +extern void gist_desc(char *buf, uint8 xl_info, char* rec); + /* gistget.c */ extern Datum gistgettuple(PG_FUNCTION_ARGS); diff --git a/src/include/access/hash.h b/src/include/access/hash.h index 17d3496dee0..de74ca4f92b 100644 --- a/src/include/access/hash.h +++ b/src/include/access/hash.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: hash.h,v 1.35 2000/07/14 22:17:53 tgl Exp $ + * $Id: hash.h,v 1.36 2000/11/21 21:16:05 petere Exp $ * * NOTES * modeled after Margo Seltzer's hash implementation for unix. @@ -20,6 +20,7 @@ #include "access/itup.h" #include "access/relscan.h" #include "access/sdir.h" +#include "access/xlog.h" #include "fmgr.h" /* @@ -330,4 +331,10 @@ extern Bucket _hash_call(Relation rel, HashMetaPage metap, Datum key); extern uint32 _hash_log2(uint32 num); extern void _hash_checkpage(Page page, int flags); + +/* hash.c */ +extern void hash_redo(XLogRecPtr lsn, XLogRecord *record); +extern void hash_undo(XLogRecPtr lsn, XLogRecord *record); +extern void hash_desc(char *buf, uint8 xl_info, char* rec); + #endif /* HASH_H */ diff --git a/src/include/access/heapam.h b/src/include/access/heapam.h index b325b1b2d1c..de4f2934853 100644 --- a/src/include/access/heapam.h +++ b/src/include/access/heapam.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: heapam.h,v 1.57 2000/11/14 21:04:32 tgl Exp $ + * $Id: heapam.h,v 1.58 2000/11/21 21:16:05 petere Exp $ * *------------------------------------------------------------------------- */ @@ -18,6 +18,7 @@ #include "access/htup.h" #include "access/relscan.h" #include "access/tupmacs.h" +#include "access/xlogutils.h" #include "storage/block.h" #include "storage/lmgr.h" #include "utils/rel.h" @@ -234,6 +235,10 @@ extern int heap_mark4update(Relation relation, HeapTuple tup, Buffer *userbuf); extern void heap_markpos(HeapScanDesc scan); extern void heap_restrpos(HeapScanDesc scan); +extern void heap_redo(XLogRecPtr lsn, XLogRecord *rptr); +extern void heap_undo(XLogRecPtr lsn, XLogRecord *rptr); +extern void heap_desc(char *buf, uint8 xl_info, char* rec); + /* in common/heaptuple.c */ extern Size ComputeDataSize(TupleDesc tupleDesc, Datum *value, char *nulls); extern void DataFill(char *data, TupleDesc tupleDesc, diff --git a/src/include/access/nbtree.h b/src/include/access/nbtree.h index 23a9c9587cb..830fc657317 100644 --- a/src/include/access/nbtree.h +++ b/src/include/access/nbtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: nbtree.h,v 1.46 2000/10/21 15:43:33 vadim Exp $ + * $Id: nbtree.h,v 1.47 2000/11/21 21:16:05 petere Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,7 @@ #include "access/itup.h" #include "access/relscan.h" #include "access/sdir.h" +#include "access/xlogutils.h" /* * BTPageOpaqueData -- At the end of every page, we store a pointer @@ -332,6 +333,10 @@ extern Datum btmarkpos(PG_FUNCTION_ARGS); extern Datum btrestrpos(PG_FUNCTION_ARGS); extern Datum btdelete(PG_FUNCTION_ARGS); +extern void btree_redo(XLogRecPtr lsn, XLogRecord *record); +extern void btree_undo(XLogRecPtr lsn, XLogRecord *record); +extern void btree_desc(char *buf, uint8 xl_info, char* rec); + /* * prototypes for functions in nbtinsert.c */ diff --git a/src/include/access/rtree.h b/src/include/access/rtree.h index 70ab1526dc0..50879ce841e 100644 --- a/src/include/access/rtree.h +++ b/src/include/access/rtree.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: rtree.h,v 1.19 2000/06/15 03:32:31 momjian Exp $ + * $Id: rtree.h,v 1.20 2000/11/21 21:16:05 petere Exp $ * *------------------------------------------------------------------------- */ @@ -17,6 +17,7 @@ #include "access/itup.h" #include "access/sdir.h" #include "access/skey.h" +#include "access/xlog.h" #include "utils/rel.h" /* see rtstrat.c for what all this is about */ @@ -121,6 +122,10 @@ extern Datum rtrescan(PG_FUNCTION_ARGS); extern Datum rtbuild(PG_FUNCTION_ARGS); extern void _rtdump(Relation r); +extern void rtree_redo(XLogRecPtr lsn, XLogRecord *record); +extern void rtree_undo(XLogRecPtr lsn, XLogRecord *record); +extern void rtree_desc(char *buf, uint8 xl_info, char* rec); + /* rtscan.c */ extern void rtadjscans(Relation r, int op, BlockNumber blkno, OffsetNumber offnum); diff --git a/src/include/access/transam.h b/src/include/access/transam.h index 86fed998a4c..f1238d5c266 100644 --- a/src/include/access/transam.h +++ b/src/include/access/transam.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: transam.h,v 1.26 2000/11/03 11:39:36 vadim Exp $ + * $Id: transam.h,v 1.27 2000/11/21 21:16:05 petere Exp $ * * NOTES * Transaction System Version 101 now support proper oid @@ -200,5 +200,6 @@ extern bool AMI_OVERRIDE; /* in varsup.c */ extern int OidGenLockId; +extern VariableCache ShmemVariableCache; #endif /* TRAMSAM_H */ diff --git a/src/include/access/xact.h b/src/include/access/xact.h index 18ca96f3d83..5aab06e1159 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2000, PostgreSQL, Inc * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: xact.h,v 1.29 2000/10/28 16:20:59 vadim Exp $ + * $Id: xact.h,v 1.30 2000/11/21 21:16:05 petere Exp $ * *------------------------------------------------------------------------- */ @@ -15,6 +15,7 @@ #define XACT_H #include "access/transam.h" +#include "access/xlog.h" #include "utils/nabstime.h" /* @@ -142,6 +143,10 @@ extern TransactionId DisabledTransactionId; extern void XactPushRollback(void (*func) (void *), void* data); extern void XactPopRollback(void); +extern void xact_redo(XLogRecPtr lsn, XLogRecord *record); +extern void xact_undo(XLogRecPtr lsn, XLogRecord *record); +extern void xact_desc(char *buf, uint8 xl_info, char* rec); + /* defined in xid.c */ extern Datum xidin(PG_FUNCTION_ARGS); extern Datum xidout(PG_FUNCTION_ARGS); diff --git a/src/include/access/xlog.h b/src/include/access/xlog.h index ec7215b6ae9..493a0e9091b 100644 --- a/src/include/access/xlog.h +++ b/src/include/access/xlog.h @@ -1,9 +1,9 @@ /* - * * xlog.h * - * Postgres transaction log manager + * PostgreSQL transaction log manager * + * $Header: /cvsroot/pgsql/src/include/access/xlog.h,v 1.10 2000/11/21 21:16:05 petere Exp $ */ #ifndef XLOG_H #define XLOG_H @@ -11,6 +11,7 @@ #include "access/rmgr.h" #include "access/transam.h" #include "access/xlogdefs.h" +#include "access/xlogutils.h" typedef struct XLogRecord { @@ -99,4 +100,20 @@ extern void XLogFlush(XLogRecPtr RecPtr); extern void CreateCheckPoint(bool shutdown); +extern void xlog_redo(XLogRecPtr lsn, XLogRecord *record); +extern void xlog_undo(XLogRecPtr lsn, XLogRecord *record); +extern void xlog_desc(char *buf, uint8 xl_info, char* rec); + +extern void UpdateControlFile(void); +extern int XLOGShmemSize(void); +extern void XLOGShmemInit(void); +extern void BootStrapXLOG(void); +extern void StartupXLOG(void); +extern void ShutdownXLOG(void); +extern void CreateCheckPoint(bool shutdown); +extern void SetThisStartUpID(void); + +extern char XLogDir[]; +extern char ControlFilePath[]; + #endif /* XLOG_H */ diff --git a/src/include/access/xlogutils.h b/src/include/access/xlogutils.h index b8fa3549f42..ab5caccf322 100644 --- a/src/include/access/xlogutils.h +++ b/src/include/access/xlogutils.h @@ -1,6 +1,7 @@ #ifndef XLOG_UTILS_H +#include "access/rmgr.h" #include "utils/rel.h" extern int XLogIsOwnerOfTuple(RelFileNode hnode, ItemPointer iptr, |
