Remove unnecessary (and inadequate) check of IsTransactionBlock() in

pgstat_vacuum_tabstat().  Assume that caller (namely, VACUUM) has done
the appropriate state checking beforehand.
This commit is contained in:
Tom Lane 2002-10-21 19:59:14 +00:00
parent a20e49bea8
commit b47c3598d4
1 changed files with 1 additions and 9 deletions

View File

@ -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"
@ -516,14 +516,6 @@ pgstat_vacuum_tabstat(void)
if (pgStatSock < 0)
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.