1 /*-------------------------------------------------------------------------
4 * prototypes for functions in backend/catalog/storage.c
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
17 #include "storage/block.h"
18 #include "storage/relfilenode.h"
19 #include "utils/rel.h"
21 extern void RelationCreateStorage(RelFileNode rnode
, bool istemp
);
22 extern void RelationDropStorage(Relation rel
);
23 extern void RelationTruncate(Relation rel
, BlockNumber nblocks
);
26 * These functions used to be in storage/smgr/smgr.c, which explains the
29 extern void smgrDoPendingDeletes(bool isCommit
);
30 extern int smgrGetPendingDeletes(bool forCommit
, RelFileNode
**ptr
,
32 extern void AtSubCommit_smgr(void);
33 extern void AtSubAbort_smgr(void);
34 extern void PostPrepare_smgr(void);
36 extern void smgr_redo(XLogRecPtr lsn
, XLogRecord
*record
);
37 extern void smgr_desc(StringInfo buf
, uint8 xl_info
, char *rec
);
39 #endif /* STORAGE_H */