diff options
Diffstat (limited to 'src/backend/access/transam/xlog.c')
-rw-r--r-- | src/backend/access/transam/xlog.c | 11 |
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. |