Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YxTUH-0005ym-8Z for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 05:02:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YxTUG-0000oH-15 for pgsql-admin@arkaria.postgresql.org; Wed, 27 May 2015 05:02:40 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YxTUD-0000o4-Uo for pgsql-admin@postgresql.org; Wed, 27 May 2015 05:02:38 +0000 Received: from biglist.com ([207.99.53.219]) by magus.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1YxTU5-0007FG-IQ for pgsql-admin@postgresql.org; Wed, 27 May 2015 05:02:36 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=biglist.com; s=bravo-dkim; t=1432702949; bh=ZSZG3Z//o4sL+l44C35LhSmaiDo=; h=Received:Received:From:Content-Type:Content-Transfer-Encoding: Subject:Message-Id:Date:To:Mime-Version:X-Mailer; b=ldVBrBlrTn37Sm5sBnI6wNtGBJ/02ok/b3EDUFfv+mfII4FcnKtHxAZDyp5WGMNTI w7LUh2QqYQsR9DyCAQuwq+sRujHzNAiOxFji5l8LEQ41kGLbgbTygT2WV00OzQ2s+R 1qz/D7L+2erTiCQG+U9tRhi7k4lVOP/awvqnUDpc= Received: (qmail 38402 invoked from network); 27 May 2015 05:02:26 -0000 Received: from foon.sporktines.com (HELO fruitcake.sporklab.com) (spork@96.57.144.66) by biglist.com with ESMTPA; 27 May 2015 05:02:26 -0000 From: Charles Sprickman Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: autovacuum was not vacuuming Message-Id: <1E6196B0-6B63-4BC9-8E14-DF54AC2A1F34@biglist.com> Date: Wed, 27 May 2015 01:02:24 -0400 To: "pgsql-admin@postgresql.org" Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) X-Mailer: Apple Mail (2.1878.6) X-Pg-Spam-Score: -2.0 (--) 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 I=92m having some trouble figuring out what was going on that led up to thi= s, but after neglecting maintenance for some time, I noticed that even thou= gh autovacuum was not disabled, it never seemed to be getting around to vac= uuming. Some basics - PG 9.2, about 150 databases, autovacuum default settings After an initial read of some vacuuming tips, I came up with the following = settings: autovacuum =3D on # Enable autovacuum subprocess? 'on' log_autovacuum_min_duration =3D 100 # -1 disables, 0 logs all actions and autovacuum_max_workers =3D 8 # max number of autovacuum subprocesses autovacuum_naptime =3D 40min # time between autovacuum runs autovacuum_vacuum_scale_factor =3D 0.1 # fraction of table size before vacu= um autovacuum_analyze_scale_factor =3D 0.1 # fraction of table size before ana= lyze autovacuum_vacuum_cost_delay =3D 10ms # default vacuum cost delay for # autovacuum, in milliseconds; autovacuum_vacuum_cost_limit =3D 1000 # default vacuum cost limit for # autovacuum, -1 means use My main interest there actually was getting logs, but something obviously k= icked in as I started seeing a number of databases/tables getting vacuumed = that had not been vacuumed in over a year. Some of these tables have at le= ast a few thousand insert/delete/updates per day, some much more than that. Was the combination of the large(?) number of databases and default setting= s effectively preventing autovacuum from doing its thing? Thanks, Charles --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin