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

Commita6dec19

Browse files
committed
Fix bug in 2PC xact stats reporter
1 parenta7d5bb1 commita6dec19

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎src/backend/postmaster/pgstat.c‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,6 +2218,13 @@ pgstat_twophase_postcommit(TransactionId xid, uint16 info,
22182218
pgstat_info->t_counts.t_tuples_deleted+=rec->tuples_deleted;
22192219
pgstat_info->t_counts.t_truncated=rec->t_truncated;
22202220

2221+
if (rec->t_truncated)
2222+
{
2223+
/* forget live/dead stats seen by backend thus far */
2224+
pgstat_info->t_counts.t_delta_live_tuples=0;
2225+
pgstat_info->t_counts.t_delta_dead_tuples=0;
2226+
}
2227+
22212228
pgstat_info->t_counts.t_delta_live_tuples+=
22222229
rec->tuples_inserted-rec->tuples_deleted;
22232230
pgstat_info->t_counts.t_delta_dead_tuples+=

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp