Vacuum not removing dead tuples

From: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Vacuum not removing dead tuples
Date: 2017-11-15 05:37:12
Message-ID: 7D8ED7AF-E189-4FA2-BB6D-FC9E8A127E28@icloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Is there a reason vacuum will not remove dead tuples other than the usual suspects? There are no two phase transactions and even after a restoring the database from binary backup with nothing connect to the restored instance; vacuum still does not remove the dead tuples.

psql: FATAL: the database system is starting up
[postgres(at)pgdb02 ~]$ psql
psql (9.6.5)
Type "help" for help.

pgdb02=# vacuum verbose prod.bb_rate;
INFO: vacuuming "prod.bb_rate"
INFO: index "bb_rate_pkey" now contains 210082099 row versions in 495747 pages
DETAIL: 0 index row versions were removed.
1 index pages have been deleted, 0 are currently reusable.
CPU 7.55s/1.35u sec elapsed 12.99 sec.
INFO: index "bb_rate_idx1" now contains 210082099 row versions in 678445 pages
DETAIL: 0 index row versions were removed.
474 index pages have been deleted, 0 are currently reusable.
CPU 10.46s/2.07u sec elapsed 24.67 sec.
INFO: "bb_rate": found 0 removable, 190511368 nonremovable row versions in 1070330 out of 2038195 pages
DETAIL: 171750178 dead row versions cannot be removed yet.
There were 28676154 unused item pointers.
Skipped 0 pages due to buffer pins.
0 pages are entirely empty.
CPU 71.52s/45.55u sec elapsed 228.24 sec.
INFO: vacuuming "pg_toast.pg_toast_419371"
INFO: index "pg_toast_419371_index" now contains 0 row versions in 1 pages
DETAIL: 0 index row versions were removed.
0 index pages have been deleted, 0 are currently reusable.
CPU 0.00s/0.00u sec elapsed 0.00 sec.
INFO: "pg_toast_419371": found 0 removable, 0 nonremovable row versions in 0 out of 0 pages
DETAIL: 0 dead row versions cannot be removed yet.
There were 0 unused item pointers.
Skipped 0 pages due to buffer pins.
0 pages are entirely empty.
CPU 0.00s/0.00u sec elapsed 0.00 sec.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Debraj Manna 2017-11-15 06:54:59 Re: Upgrade 9.5 cluster with non default data directory with checksum
Previous Message Mark Kirkwood 2017-11-15 01:34:57 Re: PG10 - Out of shared memory / invalid memory alloc request size