~ubuntu-branches/ubuntu/precise/postgresql-9.1/precise-security

« back to all changes in this revision

Viewing changes to src/include/catalog/storage.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2011-05-11 10:41:53 UTC
  • Revision ID: james.westby@ubuntu.com-20110511104153-psbh2o58553fv1m0
Tags: upstream-9.1~beta1
ImportĀ upstreamĀ versionĀ 9.1~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * storage.h
 
4
 *        prototypes for functions in backend/catalog/storage.c
 
5
 *
 
6
 *
 
7
 * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
8
 * Portions Copyright (c) 1994, Regents of the University of California
 
9
 *
 
10
 * src/include/catalog/storage.h
 
11
 *
 
12
 *-------------------------------------------------------------------------
 
13
 */
 
14
#ifndef STORAGE_H
 
15
#define STORAGE_H
 
16
 
 
17
#include "access/xlog.h"
 
18
#include "lib/stringinfo.h"
 
19
#include "storage/block.h"
 
20
#include "storage/relfilenode.h"
 
21
#include "utils/relcache.h"
 
22
 
 
23
extern void RelationCreateStorage(RelFileNode rnode, char relpersistence);
 
24
extern void RelationDropStorage(Relation rel);
 
25
extern void RelationPreserveStorage(RelFileNode rnode);
 
26
extern void RelationTruncate(Relation rel, BlockNumber nblocks);
 
27
 
 
28
/*
 
29
 * These functions used to be in storage/smgr/smgr.c, which explains the
 
30
 * naming
 
31
 */
 
32
extern void smgrDoPendingDeletes(bool isCommit);
 
33
extern int      smgrGetPendingDeletes(bool forCommit, RelFileNode **ptr);
 
34
extern void AtSubCommit_smgr(void);
 
35
extern void AtSubAbort_smgr(void);
 
36
extern void PostPrepare_smgr(void);
 
37
 
 
38
extern void log_smgrcreate(RelFileNode *rnode, ForkNumber forkNum);
 
39
 
 
40
extern void smgr_redo(XLogRecPtr lsn, XLogRecord *record);
 
41
extern void smgr_desc(StringInfo buf, uint8 xl_info, char *rec);
 
42
 
 
43
#endif   /* STORAGE_H */