pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-admin@postgresql.org
Subject: Re: Can postgres run autovacuum tasks when autovacuum is disabled?
Date: Wed, 30 Jul 2014 01:00:45 -0700 (PDT)
Message-ID: <1406707245323-5813258.post@n5.nabble.com> (raw)
In-Reply-To: <CAOR=d=2-NTCiYDAEg+MC4i0S8LJrMUdX2STVufYx_hYKgDHZCA@mail.gmail.com>
References: <CAN=gQ4AnP5mQHiU_2YYNDmCps=E3pGXQyAeAQ7RySEURri0V0w@mail.gmail.com>
	<CAOR=d=2-NTCiYDAEg+MC4i0S8LJrMUdX2STVufYx_hYKgDHZCA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

Scott Marlowe-2 wrote
> On Wed, Jul 30, 2014 at 1:12 AM, Andrey Zhidenkov &lt;

> pensnarik@

> &gt; 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?
> 
> Are you sure these aren't to prevent wrap-around?

This is my other theory, and probably the correct one.  Is this something
that can be discovered from the logs (since nothing in the query provides
this detail)?

David J.




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Can-postgres-run-autovacuum-tasks-when-autovacuum-is-disable...
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



view thread (9+ messages)  latest in thread

Message-ID: <1406707245323-5813258.post@n5.nabble.com>
Permalink:  ../1406707245323-5813258.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1406707245323-5813258.post@n5.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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: Can postgres run autovacuum tasks when autovacuum is disabled?
  In-Reply-To: <1406707245323-5813258.post@n5.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