Fix obsolete comment regarding FSM truncation.
[PostgreSQL.git] / src / include / catalog / storage.h
blob8fc5f209e9dd90796b11d3733bfcdeeed3ce613c
1 /*-------------------------------------------------------------------------
3 * storage.h
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
10 * $PostgreSQL$
12 *-------------------------------------------------------------------------
14 #ifndef STORAGE_H
15 #define STORAGE_H
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
27 * naming
29 extern void smgrDoPendingDeletes(bool isCommit);
30 extern int smgrGetPendingDeletes(bool forCommit, RelFileNode **ptr,
31 bool *haveNonTemp);
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 */