Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b47c359

Browse files
committed
Remove unnecessary (and inadequate) check of IsTransactionBlock() in
pgstat_vacuum_tabstat(). Assume that caller (namely, VACUUM) has done the appropriate state checking beforehand.
1 parent a20e49b commit b47c359

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/backend/postmaster/pgstat.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* Copyright (c) 2001, PostgreSQL Global Development Group
1818
*
19-
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.29 2002/09/25 20:31:40 tgl Exp $
19+
* $Header: /cvsroot/pgsql/src/backend/postmaster/pgstat.c,v 1.30 2002/10/21 19:59:14 tgl Exp $
2020
* ----------
2121
*/
2222
#include "postgres.h"
@@ -516,14 +516,6 @@ pgstat_vacuum_tabstat(void)
516516
if (pgStatSock < 0)
517517
return 0;
518518

519-
/*
520-
* We don't vacuum inside of transaction blocks, because a possible
521-
* later rollback might reactivate objects we didn't find because of
522-
* earlier destruction in the xact.
523-
*/
524-
if (IsTransactionBlock())
525-
return 0;
526-
527519
/*
528520
* If not done for this transaction, read the statistics collector
529521
* stats file into some hash tables.

0 commit comments

Comments
 (0)