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:
@ -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.
|
||||
|
Reference in New Issue
Block a user