From 6d61cdec0761dc1f86a196899825b52b1186d00e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Wed, 29 Mar 2006 21:17:39 +0000 Subject: Clean up and document the API for XLogOpenRelation and XLogReadBuffer. This commit doesn't make much functional change, but it does eliminate some duplicated code --- for instance, PageIsNew tests are now done inside XLogReadBuffer rather than by each caller. The GIST xlog code still needs a lot of love, but I'll worry about that separately. --- src/backend/commands/tablespace.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/tablespace.c') diff --git a/src/backend/commands/tablespace.c b/src/backend/commands/tablespace.c index 84b8f02736d..bafea91dfcb 100644 --- a/src/backend/commands/tablespace.c +++ b/src/backend/commands/tablespace.c @@ -37,7 +37,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.33 2006/03/29 15:15:43 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablespace.c,v 1.34 2006/03/29 21:17:38 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -467,6 +467,12 @@ DropTableSpace(DropTableSpaceStmt *stmt) (void) XLogInsert(RM_TBLSPC_ID, XLOG_TBLSPC_DROP, rdata); } + /* + * Note: because we checked that the tablespace was empty, there should + * be no need to worry about flushing shared buffers or free space map + * entries for relations in the tablespace. + */ + /* * Allow TablespaceCreateDbspace again. */ -- cgit v1.2.3