Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb47c359

Browse files
committed
Remove unnecessary (and inadequate) check of IsTransactionBlock() in
pgstat_vacuum_tabstat(). Assume that caller (namely, VACUUM) has donethe appropriate state checking beforehand.
1 parenta20e49b commitb47c359

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
return0;
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-
return0;
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)

[8]ページ先頭

©2009-2025 Movatter.jp