From eddbf39756fb7d58f1bdc7582af7d6462410a3e1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 17 Jan 2007 16:25:01 +0000 Subject: Extend yesterday's patch so that the bgwriter is also told to forget pending fsyncs during DROP DATABASE. Obviously necessary in hindsight :-( --- src/include/storage/smgr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/storage/smgr.h b/src/include/storage/smgr.h index ffa135c028..3beb14feba 100644 --- a/src/include/storage/smgr.h +++ b/src/include/storage/smgr.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2007, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/smgr.h,v 1.57 2007/01/05 22:19:58 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/smgr.h,v 1.58 2007/01/17 16:25:01 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -106,6 +106,8 @@ extern void mdimmedsync(SMgrRelation reln); extern void mdsync(void); extern void RememberFsyncRequest(RelFileNode rnode, BlockNumber segno); +extern void ForgetRelationFsyncRequests(RelFileNode rnode); +extern void ForgetDatabaseFsyncRequests(Oid dbid); /* smgrtype.c */ extern Datum smgrout(PG_FUNCTION_ARGS); -- cgit v1.2.1