pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Re: slow queries on system tables
Date: Fri, 23 Aug 2019 14:47:55 -0700 (MST)
Message-ID: <1566596875387-0.post@n3.nabble.com> (raw)
In-Reply-To: <1565968275886-0.post@n3.nabble.com>
References: <1565879436637-0.post@n3.nabble.com>
	<CAHOFxGrV0dj+4=s5-0-XG36_13t3smhKq0hujmRNaKqtfZ3YuA@mail.gmail.com>
	<1565896167022-0.post@n3.nabble.com>
	<88609b1c-1653-6d4c-c1b4-883e109f5b93@aklaver.com>
	<1565963536657-0.post@n3.nabble.com>
	<19659.1565966519@sss.pgh.pa.us>
	<1565968275886-0.post@n3.nabble.com>

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 ?
relname	seq_scan	seq_tup_read	idx_scan	idx_tup_fetch	n_tup_ins	n_tup_upd
n_tup_del	n_tup_hot_upd	n_live_tup	n_dead_tup	n_mod_since_analyze
last_vacuum	last_autovacuum	last_analyze	last_autoanalyze	vacuum_count
autovacuum_count	analyze_count	autoanalyze_count
pg_class	5395512	38598962913	616674711	2219978581	2243	75187	625	44008
169891	5645	7435	NULL	2019-08-22 19:58:48.497317	NULL	2019-08-22
13:03:02.770579	0	415	0	1




--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html

view thread (16+ messages)  latest in thread

Message-ID: <1566596875387-0.post@n3.nabble.com>
Permalink:  ../1566596875387-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1566596875387-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: marcos@f10.com.br
  Subject: Re: slow queries on system tables
  In-Reply-To: <1566596875387-0.post@n3.nabble.com>
  References: <1565879436637-0.post@n3.nabble.com> <CAHOFxGrV0dj+4=s5-0-XG36_13t3smhKq0hujmRNaKqtfZ3YuA@mail.gmail.com> <1565896167022-0.post@n3.nabble.com> <88609b1c-1653-6d4c-c1b4-883e109f5b93@aklaver.com> <1565963536657-0.post@n3.nabble.com> <19659.1565966519@sss.pgh.pa.us> <1565968275886-0.post@n3.nabble.com> <1566596875387-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox