From: | Ron Johnson <ronljohnsonjr(at)gmail(dot)com> |
---|---|
To: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | vacuumdb did not analyze all tables?= |
Date: | 2023-12-14 02:38:52 |
Message-ID: | CANzqJaCdq_V2a6oyYO5pJ9W9=4O7t_haOzK+pH5XE2PROUmp1Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
vacuumdb 15.3
database instance: 9.6.24
I manually analyzed 71 tables this morning at 10:42. (All those with
"rp20_y2021" in the relname.)
Three of the 71 tables were not analyzed. Why would that be?
(Five were not vacuumed, but I accept that some other process might have
blocked them.)
vacuumdb -U postgres -h $DbServer --analyze -j6 -t ... -t
cds.cdstransaction_rp20_y2021 -t ...
TAPb=# select schemaname||'.'||relname as table_name
, last_vacuum
, last_analyze
from pg_stat_user_tables
where schemaname||'.'||relname in ('cds.cdstransaction_rp20_y2021'
, 'css.image_annotation_rp20_y2021'
, 'tms.document_rp20_y2021')
order by 1;
table_name | last_vacuum |
last_analyze
---------------------------------+-------------------------------+-------------------------------
cds.cdstransaction_rp20_y2021 | 2023-12-13 10:42:09.683143-05 |
2023-11-17 04:11:08.761861-05
css.image_annotation_rp20_y2021 | 2023-09-25 20:00:07.831722-04 |
2023-09-25 20:00:07.831793-04
tms.document_rp20_y2021 | 2023-12-13 10:42:03.079969-05 |
2023-11-17 04:11:56.583881-05
(3 rows)
From | Date | Subject | |
---|---|---|---|
Next Message | Filip Sedlák | 2023-12-14 07:53:33 | Re: How to Straming replication chatch up from archive |
Previous Message | Adrian Klaver | 2023-12-13 23:56:09 | Re: Increased storage size of jsonb in pg15 |