Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id B998F6E08E2 for ; Mon, 12 Dec 2011 11:26:26 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Ra7lo-0001SA-Kw for pgsql-performance@postgresql.org; Mon, 12 Dec 2011 15:26:26 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pBCFQAAR018793; Mon, 12 Dec 2011 10:26:10 -0500 (EST) To: "Anibal David Acosta" cc: "'Craig Ringer'" , pgsql-performance@postgresql.org Subject: Re: autovacuum, exclude table In-reply-to: <010a01ccb8de$07c0ad20$17420760$@devshock.com> References: <00f501ccb8d9$f07dc4d0$d1794e70$@devshock.com> <010a01ccb8de$07c0ad20$17420760$@devshock.com> Comments: In-reply-to "Anibal David Acosta" message dated "Mon, 12 Dec 2011 11:55:00 -0300" Date: Mon, 12 Dec 2011 10:26:10 -0500 Message-ID: <18792.1323703570@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -2.5 (--) X-Archive-Number: 201112/95 X-Sequence-Number: 45894 "Anibal David Acosta" writes: > Tables has insert (in bulk every 3 minutes) and delete one per day (delete records older than XX days) No updates at all, just inserts and a daily delete? If so, you're wasting your time even thinking about suppressing autovacuum, because it won't fire on this table except after the daily delete, which is exactly when you need it to. Also, if you suppress autovacuum you also suppress autoanalyze, which is something that *will* fire after large inserts, and probably should. At least, this usage pattern doesn't suggest to me that it's clearly safe to run without up-to-date stats. Right offhand, I'm not convinced either that you have a problem, or that turning off autovacuum would fix it. regards, tom lane