aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2002-10-21 19:59:14 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2002-10-21 19:59:14 +0000
commitb47c3598d4dceb053fae5c52ff67f5b763d19bec (patch)
tree4554aa76022c2e57017974c24d3e8673902b748a /src
parenta20e49bea82712e803f133dc81716bc4220df496 (diff)
downloadpostgresql-b47c3598d4dceb053fae5c52ff67f5b763d19bec.tar.gz
postgresql-b47c3598d4dceb053fae5c52ff67f5b763d19bec.zip
Remove unnecessary (and inadequate) check of IsTransactionBlock() in
pgstat_vacuum_tabstat(). Assume that caller (namely, VACUUM) has done the appropriate state checking beforehand.
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/pgstat.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/backend/postmaster/pgstat.c b/src/backend/postmaster/pgstat.c
index 9c7795cd26e..d7da6177d05 100644
--- a/src/backend/postmaster/pgstat.c
+++ b/src/backend/postmaster/pgstat.c
@@ -16,7 +16,7 @@
*
* Copyright (c) 2001, PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.29 2002/09/25 20:31:40 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.30 2002/10/21 19:59:14 tgl Exp $
* ----------
*/
#include "postgres.h"
@@ -517,14 +517,6 @@ pgstat_vacuum_tabstat(void)
return 0;
/*
- * We don't vacuum inside of transaction blocks, because a possible
- * later rollback might reactivate objects we didn't find because of
- * earlier destruction in the xact.
- */
- if (IsTransactionBlock())
- return 0;
-
- /*
* If not done for this transaction, read the statistics collector
* stats file into some hash tables.
*/