Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hr5mV-0003vt-09 for pgsql-general@arkaria.postgresql.org; Fri, 26 Jul 2019 19:21:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hr5mT-0004tg-SW for pgsql-general@arkaria.postgresql.org; Fri, 26 Jul 2019 19:21:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hr5mT-0004qy-E9 for pgsql-general@lists.postgresql.org; Fri, 26 Jul 2019 19:21:29 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1hr5mP-0002zE-LP for pgsql-general@postgresql.org; Fri, 26 Jul 2019 19:21:27 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 6753015CC2804 for ; Fri, 26 Jul 2019 12:21:24 -0700 (MST) Date: Fri, 26 Jul 2019 12:21:24 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1564168884421-0.post@n3.nabble.com> 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> <1564162735655-0.post@n3.nabble.com> Subject: Re: Too slow to create new schema and their tables, functions, triggers. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 =3D 'pg_catalog' relname=09 n_live_tup=09n_dead_tup pg_attrdef=09 3699=09 1095 pg_index=09 4756=09 1183 pg_sequence=09 20827=09 1482 pg_statistic=09 171699=09 27101 pg_trigger=09 221319=09 20718 pg_shdepend=09 225017=09 22337 pg_attribute=09 883023=09 164153 pg_depend=09 1553586=09 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=C2=B4ll check our script too. -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml