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: Too slow to create new schema and their tables, functions, triggers.
Date: Fri, 26 Jul 2019 12:21:24 -0700 (MST)
Message-ID: <1564168884421-0.post@n3.nabble.com> (raw)
In-Reply-To: <1564162735655-0.post@n3.nabble.com>
References: <1563909633976-0.post@n3.nabble.com>
	<1563993228524-0.post@n3.nabble.com>
	<18481dfb-af39-b6a2-7b27-88563cab7134@aklaver.com>
	<1564092985717-0.post@n3.nabble.com>
	<47c2bef2-a283-7849-2545-c1cb0dd5140e@aklaver.com>
	<1564095689955-0.post@n3.nabble.com>
	<479a75d1-938f-0243-517a-3db26799fb07@aklaver.com>
	<1564139731131-0.post@n3.nabble.com>
	<CAKoxK+5Ui9=_LJQaQi9JhOheXn=W7eFqpdeH6sLMN2FUomeLbQ@mail.gmail.com>
	<1564162735655-0.post@n3.nabble.com>

Correct, seems to be something wrong on system tables. Maybe our script is
running something is already there, we will check.

select * from pg_stat_sys_tables where schemaname = 'pg_catalog'

relname	         n_live_tup	n_dead_tup
pg_attrdef	            3699	     1095
pg_index	          4756	   1183
pg_sequence	  20827	  1482
pg_statistic	  171699	  27101
pg_trigger	          221319	 20718
pg_shdepend	   225017	  22337
pg_attribute	  883023	  164153
pg_depend	  1553586	  142960

and all them last_vacuum is null and last_autovacuum is too old.

So, is it better to configure autovacuum properly to these tables or should
I run vacuum periodically ?
Obviously I´ll check our script too.



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





view thread (20+ messages)  latest in thread

Message-ID: <1564168884421-0.post@n3.nabble.com>
Permalink:  ../1564168884421-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1564168884421-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: Too slow to create new schema and their tables, functions, triggers.
  In-Reply-To: <1564168884421-0.post@n3.nabble.com>
  References: <1563909633976-0.post@n3.nabble.com> <1563993228524-0.post@n3.nabble.com> <18481dfb-af39-b6a2-7b27-88563cab7134@aklaver.com> <1564092985717-0.post@n3.nabble.com> <47c2bef2-a283-7849-2545-c1cb0dd5140e@aklaver.com> <1564095689955-0.post@n3.nabble.com> <479a75d1-938f-0243-517a-3db26799fb07@aklaver.com> <1564139731131-0.post@n3.nabble.com> <CAKoxK+5Ui9=_LJQaQi9JhOheXn=W7eFqpdeH6sLMN2FUomeLbQ@mail.gmail.com> <1564162735655-0.post@n3.nabble.com> <1564168884421-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