Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XCOTi-0000fP-AN for pgsql-admin@arkaria.postgresql.org; Wed, 30 Jul 2014 07:39:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XCOTh-00032Z-Ke for pgsql-admin@arkaria.postgresql.org; Wed, 30 Jul 2014 07:39:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XCOTf-00032Q-Ia for pgsql-admin@postgresql.org; Wed, 30 Jul 2014 07:39:11 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XCOTb-0006Be-Ar for pgsql-admin@postgresql.org; Wed, 30 Jul 2014 07:39:10 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XCOTW-0007pJ-KP for pgsql-admin@postgresql.org; Wed, 30 Jul 2014 00:39:02 -0700 Date: Wed, 30 Jul 2014 00:39:02 -0700 (PDT) From: David G Johnston To: pgsql-admin@postgresql.org Message-ID: <1406705942615-5813254.post@n5.nabble.com> In-Reply-To: References: Subject: Re: Can postgres run autovacuum tasks when autovacuum is disabled? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Andrey Zhidenkov wrote > I'm confused about this: > > [postgres@srv log]$ grep autovacuum ~/data/postgresql.conf > autovacuum = off # Enable autovacuum subprocess? 'on' > log_autovacuum_min_duration = 0 # -1 disables, 0 logs all actions and > autovacuum_naptime = 10min # time between autovacuum runs > > So, as you can see, autovacuum is disabled now and I could not seen any > autovacuum tasks about few hours. But now > I can see this: > > srv=# select backend_start, query from pg_stat_activity where query ilike > '%vacuum%'; > backend_start | > query > > -------------------------------+--------------------------------------------------------------------------------- > 2014-07-29 21:38:42.882383+04 | select backend_start, query from > pg_stat_activity where query ilike '%vacuum%'; > 2014-07-30 10:21:51.5511+04 | autovacuum: VACUUM ANALYZE customer_email > 2014-07-30 10:43:19.49936+04 | autovacuum: VACUUM ANALYZE cdr_tech > (3 rows) > > The problem is that table cdr_tech is very large (70Gb) and I couldn't > wait > while autovacuum is finished, I would like to run vacuum manually at night > time. > > Whan I do wrong? > > Best regards, Andrey Zhidenkov > > _ > ASCII ribbon campaign ( ) > against HTML e-mail X > / \ The obvious question is whether you sighup/rebooted the server after making the change? It helps to show what your session sees as the current guc value. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Can-postgres-run-autovacuum-tasks-when-autovacuum-is-disabled-tp5813253p5813254.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com. -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin