1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-29 10:41:53 +03:00

Check the file system on postmaster startup and report any unreferenced

files in the server log.

Heikki Linnakangas
This commit is contained in:
Bruce Momjian
2005-05-02 18:26:54 +00:00
parent b656150ec0
commit 76668e6eb4
9 changed files with 302 additions and 26 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.189 2005/04/28 21:47:10 tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.190 2005/05/02 18:26:52 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -43,6 +43,7 @@
#include "utils/builtins.h"
#include "utils/guc.h"
#include "utils/relcache.h"
#include "utils/flatfiles.h"
/*
@ -4525,6 +4526,8 @@ StartupXLOG(void)
CreateCheckPoint(true, true);
CheckStaleRelFiles();
/*
* Close down recovery environment
*/
@ -4536,6 +4539,12 @@ StartupXLOG(void)
*/
remove_backup_label();
}
else
{
XLogInitRelationCache();
CheckStaleRelFiles();
XLogCloseRelationCache();
}
/*
* Preallocate additional log files, if wanted.