Re: slow queries on system tables - Mailing list pgsql-general

From PegoraroF10
Subject Re: slow queries on system tables
Date
Msg-id 1566596875387-0.post@n3.nabble.com
Whole thread Raw
In response to Re: slow queries on system tables  (PegoraroF10 <marcos@f10.com.br>)
Responses Re: slow queries on system tables
Re: slow queries on system tables
List pgsql-general
Coming back to my problem, today happened again, that search comes slow. Explaining again, auto vacuum and auto analyse for pg_* tables are not configured one by one, so its using that defaults of scale_factor = 0.2 and threshold = 50. Today, when that problem of speed came back, the view pg_stat_sys_tables for pg_class table shows that it ran 415 times autovacuum only this week and there are 75187 updates on this table. How can I have been updated 75000 times this table only in a week ? What kind of statement does an update on this table ? And why did it run 415 times autovacuum and only 1 autoanalyse ?
relnameseq_scanseq_tup_readidx_scanidx_tup_fetchn_tup_insn_tup_updn_tup_deln_tup_hot_updn_live_tupn_dead_tupn_mod_since_analyzelast_vacuumlast_autovacuumlast_analyzelast_autoanalyzevacuum_countautovacuum_countanalyze_countautoanalyze_count
pg_class53955123859896291361667471122199785812243751876254400816989156457435NULL2019-08-22 19:58:48.497317NULL2019-08-22 13:03:02.770579041501


Sent from the PostgreSQL - general mailing list archive at Nabble.com.

pgsql-general by date:

Previous
From: Michael Lewis
Date:
Subject: Re: How to use brin_summarize_range
Next
From: Michael Lewis
Date:
Subject: Re: slow queries on system tables