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

Commitee71929

Browse files
committed
Minor autovacuum fixes from Matthew O'Connor.
1 parent1b5a2db commitee71929

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎contrib/pg_autovacuum/pg_autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ init_table_info(PGresult *res, int row, db_info * dbi)
108108

109109
new_tbl->CountAtLastAnalyze=
110110
(atol(PQgetvalue(res,row,PQfnumber(res,"n_tup_ins")))+
111-
atol(PQgetvalue(res,row,PQfnumber(res,"n_tup_upd"))));
111+
atol(PQgetvalue(res,row,PQfnumber(res,"n_tup_upd")))+
112+
atol(PQgetvalue(res,row,PQfnumber(res,"n_tup_del"))));
112113
new_tbl->curr_analyze_count=new_tbl->CountAtLastAnalyze;
113114

114115
new_tbl->CountAtLastVacuum=
@@ -120,7 +121,6 @@ init_table_info(PGresult *res, int row, db_info * dbi)
120121
new_tbl->reltuples=atoi(PQgetvalue(res,row,PQfnumber(res,"reltuples")));
121122
new_tbl->relpages=atoi(PQgetvalue(res,row,PQfnumber(res,"relpages")));
122123

123-
log_entry(PQgetvalue(res,row,PQfnumber(res,"relisshared")));
124124
if (strcmp("t",PQgetvalue(res,row,PQfnumber(res,"relisshared"))))
125125
new_tbl->relisshared=0;
126126
else

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp