diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2003-12-08 21:54:05 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2003-12-08 21:54:05 +0000 |
commit | 9edff888bd293c8e1f9a427a02e17fadf6e68047 (patch) | |
tree | 8bbce1153618bed54ab5b59161eba4a2d768405d | |
parent | 2cfbbb10786cc555ff2c492d628e0071c8093ad1 (diff) |
Minor autovacuum fixes from Matthew O'Connor.
-rw-r--r-- | contrib/pg_autovacuum/pg_autovacuum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/pg_autovacuum/pg_autovacuum.c b/contrib/pg_autovacuum/pg_autovacuum.c index c3a44b8ed69..4b48d467a00 100644 --- a/contrib/pg_autovacuum/pg_autovacuum.c +++ b/contrib/pg_autovacuum/pg_autovacuum.c @@ -108,7 +108,8 @@ init_table_info(PGresult *res, int row, db_info * dbi) new_tbl->CountAtLastAnalyze = (atol(PQgetvalue(res, row, PQfnumber(res, "n_tup_ins"))) + - atol(PQgetvalue(res, row, PQfnumber(res, "n_tup_upd")))); + atol(PQgetvalue(res, row, PQfnumber(res, "n_tup_upd"))) + + atol(PQgetvalue(res, row, PQfnumber(res, "n_tup_del")))); new_tbl->curr_analyze_count = new_tbl->CountAtLastAnalyze; new_tbl->CountAtLastVacuum = @@ -120,7 +121,6 @@ init_table_info(PGresult *res, int row, db_info * dbi) new_tbl->reltuples = atoi(PQgetvalue(res, row, PQfnumber(res, "reltuples"))); new_tbl->relpages = atoi(PQgetvalue(res, row, PQfnumber(res, "relpages"))); - log_entry(PQgetvalue(res, row, PQfnumber(res, "relisshared"))); if (strcmp("t", PQgetvalue(res, row, PQfnumber(res, "relisshared")))) new_tbl->relisshared = 0; else |