提交 b47c3598 编写于 作者: T Tom Lane

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

pgstat_vacuum_tabstat().  Assume that caller (namely, VACUUM) has done
the appropriate state checking beforehand.
上级 a20e49be
......@@ -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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册