diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-02 20:50:46 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-07-02 20:50:46 +0000 |
commit | 42748087c13aaa94563f29ed120848b228c40b07 (patch) | |
tree | 3eb877baeae90b30ffd9d3bef6dd248945a68ca1 /src/backend/commands/dbcommands.c | |
parent | 755e367cb20091aa0ef5637c0e8882b8db6b39fe (diff) | |
download | postgresql-42748087c13aaa94563f29ed120848b228c40b07.tar.gz postgresql-42748087c13aaa94563f29ed120848b228c40b07.zip |
First non-stub implementation of shared free space map. It's not super
useful as yet, since its primary source of information is (full) VACUUM,
which makes a concerted effort to get rid of free space before telling
the map about it ... next stop is concurrent VACUUM ...
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 424c9665f74..dca75bd71d9 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.75 2001/06/12 05:55:49 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.76 2001/07/02 20:50:46 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -30,7 +30,8 @@ #include "commands/comment.h" #include "commands/dbcommands.h" #include "miscadmin.h" -#include "storage/sinval.h" /* for DatabaseHasActiveBackends */ +#include "storage/freespace.h" +#include "storage/sinval.h" #include "utils/builtins.h" #include "utils/fmgroids.h" #include "utils/syscache.h" @@ -373,6 +374,11 @@ dropdb(const char *dbname) DropBuffers(db_id); /* + * Also, clean out any entries in the shared free space map. + */ + FreeSpaceMapForgetDatabase(db_id); + + /* * Remove the database's subdirectory and everything in it. */ remove_dbdirs(nominal_loc, alt_loc); |