Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGT1q-0005Sp-Jx for pgsql-performance@postgresql.org; Tue, 25 Sep 2012 11:10:14 +0000 Received: from mail-wi0-f178.google.com ([209.85.212.178]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TGT1p-0002E9-86 for pgsql-performance@postgresql.org; Tue, 25 Sep 2012 11:10:14 +0000 Received: by wibhr7 with SMTP id hr7so461483wib.1 for ; Tue, 25 Sep 2012 04:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=C/CEUJmD1GHhGRhAvIKk54CZNlhEcb8fOck8FRJzDRY=; b=nN7QyB0NTBOx2qSBPo0hY/GiKqHke0hHtvqFrJvgvCBNT70BpS8lnkwkEGovDUXUr0 vgWGRyqp5bjm2z1UmbQVSLZUWyWjk9SbBI7zxZusyeWQhfMvjPScoJhiP6w2uGJ33AcD whsdFpvhSarPsvSYsCdLXNSv+C40VBO5YY2RZoPUuVH8vab4BvPxPsSkhZ9GT5ETjRou 8iLsrJ81AQXZybfnE/HRlQ+BW2NnlRwaPwROZyYDRWtMB9Xn4IzueyyXdPZUU9kDVrB7 o7+KF5nf083KBVcGPwvFR+NVLPW7RR9BxZlJwwkHHpA1LysUdG2yFFcBvnAjr6AA45k3 y0Xg== Received: by 10.180.104.197 with SMTP id gg5mr21094123wib.9.1348571412356; Tue, 25 Sep 2012 04:10:12 -0700 (PDT) Received: from [192.168.1.103] (kstr60.static.otenet.gr. [79.129.45.250]) by mx.google.com with ESMTPS id t8sm19562326wiy.3.2012.09.25.04.10.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 25 Sep 2012 04:10:11 -0700 (PDT) Subject: Re: Postgres becoming slow, only full vacuum fixes it Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii From: Kiriakos Tsourapas In-Reply-To: Date: Tue, 25 Sep 2012 14:10:08 +0300 Cc: pgsql-performance@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?Ondrej_Ivani=C4=8D?= X-Mailer: Apple Mail (2.1278) X-Pg-Spam-Score: -1.7 (-) X-Archive-Number: 201209/119 X-Sequence-Number: 47865 Hi, Suggestion noted. Nevertheless, I cannot imagine what it would help. Actually, the = cost_delay makes autovacuum freeze when it takes more time than = expected, therefore, having it enabled should help the system. I may try it as a last possible resolution (remember that I have to wait = for a couple of days for the problem to appear, so any test I perform = will be taking days to figure out if it helped !!!) >=20 > I had similar issue and I disabled cost based auto vacuum: > autovacuum_vacuum_cost_delay =3D -1 >=20 > -1 says that vacuum_cost_delay will be used and default value for > vacuum_cost_delay is 0 (ie. off) >=20 > Of couse you need to change other autovacuum settings but you did = that. >=20 > --=20 > Ondrej Ivanic > (ondrej.ivanic@gmail.com)