summaryrefslogtreecommitdiff
path: root/src/include/storage/freespace.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-03-06 00:04:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-03-06 00:04:27 +0000
commit4b6c198a6af427fd3531b09cd6fa15e715de6aa5 (patch)
tree5eed566a56b5daff030ae202427cce369227ee4f /src/include/storage/freespace.h
parent21591967bc19c749a100fb97ec82f6086ce5cc3c (diff)
Add code to dump contents of free space map into $PGDATA/global/pg_fsm.cache
at database shutdown, and then load it again at database startup. This preserves our hard-won knowledge of free space across restarts (given an orderly shutdown, that is).
Diffstat (limited to 'src/include/storage/freespace.h')
-rw-r--r--src/include/storage/freespace.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h
index 05cf77d7618..8e93a69d77f 100644
--- a/src/include/storage/freespace.h
+++ b/src/include/storage/freespace.h
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $Id: freespace.h,v 1.9 2003/03/04 21:51:22 tgl Exp $
+ * $Id: freespace.h,v 1.10 2003/03/06 00:04:27 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -60,6 +60,9 @@ extern void FreeSpaceMapForgetDatabase(Oid dbid);
extern void PrintFreeSpaceMapStatistics(int elevel);
+extern void DumpFreeSpaceMap(void);
+extern void LoadFreeSpaceMap(void);
+
#ifdef FREESPACE_DEBUG
extern void DumpFreeSpace(void);
#endif