Skip to content

Commit ee71929

Browse files
committed
Minor autovacuum fixes from Matthew O'Connor.
1 parent 1b5a2db commit ee71929

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy