aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-05-02 18:26:54 +0000
committerBruce Momjian <bruce@momjian.us>2005-05-02 18:26:54 +0000
commit76668e6eb468caa6e09af71d6bee820e2dc0fc3c (patch)
tree4d036964b0b551dde801c82db1f78b41ab7a4a77 /src/backend/access/transam/xlog.c
parentb656150ec0b7bab95cb04f4d11ffa46f9fd4118d (diff)
downloadpostgresql-76668e6eb468caa6e09af71d6bee820e2dc0fc3c.tar.gz
postgresql-76668e6eb468caa6e09af71d6bee820e2dc0fc3c.zip
Check the file system on postmaster startup and report any unreferenced
files in the server log. Heikki Linnakangas
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r--src/backend/access/transam/xlog.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c
index 48e8b425dee..096b822599c 100644
--- a/src/backend/access/transam/xlog.c
+++ b/src/backend/access/transam/xlog.c
@@ -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.