Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f31E2-0006K8-0K for pgsql-admin@arkaria.postgresql.org; Mon, 02 Apr 2018 15:18:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f31E0-0002w9-CL for pgsql-admin@arkaria.postgresql.org; Mon, 02 Apr 2018 15:18:24 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f31E0-0002vy-2L for pgsql-admin@lists.postgresql.org; Mon, 02 Apr 2018 15:18:24 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f31Dx-0003XD-BO for pgsql-admin@postgresql.org; Mon, 02 Apr 2018 15:18:22 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w32FIJcZ009824; Mon, 2 Apr 2018 11:18:19 -0400 From: Tom Lane To: Artem Tomyuk cc: pgsql-admin Subject: Re: avtovacuum queue In-reply-to: References: Comments: In-reply-to Artem Tomyuk message dated "Mon, 02 Apr 2018 18:15:08 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9822.1522682299.1@sss.pgh.pa.us> Date: Mon, 02 Apr 2018 11:18:19 -0400 Message-ID: <9823.1522682299@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Artem Tomyuk writes: > Is there any "queue" in postgres where tables that marked to be vacuumed or > analyzed can be viewed? No, there's no queue as such. You can look at the contents of pg_stat_all_tables, particularly the n_dead_tup and n_mod_since_analyze columns, to get a sense of which tables are likely to seem highest priority to the autovacuum code. regards, tom lane