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

« back to all changes in this revision

Viewing changes to src/include/postmaster/bgwriter.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
 * bgwriter.h
 
4
 *        Exports from postmaster/bgwriter.c.
 
5
 *
 
6
 * Portions Copyright (c) 1996-2011, PostgreSQL Global Development Group
 
7
 *
 
8
 * src/include/postmaster/bgwriter.h
 
9
 *
 
10
 *-------------------------------------------------------------------------
 
11
 */
 
12
#ifndef _BGWRITER_H
 
13
#define _BGWRITER_H
 
14
 
 
15
#include "storage/block.h"
 
16
#include "storage/relfilenode.h"
 
17
 
 
18
 
 
19
/* GUC options */
 
20
extern int      BgWriterDelay;
 
21
extern int      CheckPointTimeout;
 
22
extern int      CheckPointWarning;
 
23
extern double CheckPointCompletionTarget;
 
24
 
 
25
extern void BackgroundWriterMain(void);
 
26
 
 
27
extern void RequestCheckpoint(int flags);
 
28
extern void CheckpointWriteDelay(int flags, double progress);
 
29
 
 
30
extern bool ForwardFsyncRequest(RelFileNodeBackend rnode, ForkNumber forknum,
 
31
                                        BlockNumber segno);
 
32
extern void AbsorbFsyncRequests(void);
 
33
 
 
34
extern Size BgWriterShmemSize(void);
 
35
extern void BgWriterShmemInit(void);
 
36
 
 
37
#endif   /* _BGWRITER_H */