mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Minor autovacuum fixes from Matthew O'Connor.
This commit is contained in:
parent
1b5a2dbdff
commit
ee719299e4
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue