From 4b6c198a6af427fd3531b09cd6fa15e715de6aa5 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 6 Mar 2003 00:04:27 +0000 Subject: 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). --- src/include/storage/freespace.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/storage/freespace.h b/src/include/storage/freespace.h index 05cf77d761..8e93a69d77 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 -- cgit v1.2.1