Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 224149F9810 for ; Tue, 16 Oct 2007 12:43:45 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 58241-06 for ; Tue, 16 Oct 2007 12:43:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id 76A889F95FE for ; Tue, 16 Oct 2007 12:43:35 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id j3so100100ugf for ; Tue, 16 Oct 2007 08:43:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xQv0Mv9z+rvurMty2n61AyyLNMFmMYVRLM0K7X29MuM=; b=JcZe09VeSLrcFsHg8GejMXWJTipwAsqdjYQTu+u2rNxmjNjkID2+z83fYgVbMwNS3HV9J3adCYpig0ZL8Fq1rsS3lnX+KzZ+/Q7svgwDh/nIRmZ8JkRk9VY/7KGJ3svTT41ESgOzM7q0brz1MuTUJjof8agEtESpnOgVD1e1+C4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QAuz7IdVoApXjrDHb+eZkjNb23C+/awiZMFvDYYdEm4mpKzzb6RlzHR9JNwR3lyeCl01WnaQw6pMX0tDy+HvBc01QZ/PAKOzeeHmgBXmXC0wWf8YY3lKsShYr2v17zKoIywoC1SNzYVF2jQyTuuWWhZC0ftM4pnbHy4YxlnccE8= Received: by 10.66.219.11 with SMTP id r11mr9261097ugg.1192549414123; Tue, 16 Oct 2007 08:43:34 -0700 (PDT) Received: by 10.67.29.6 with HTTP; Tue, 16 Oct 2007 08:43:34 -0700 (PDT) Message-ID: Date: Tue, 16 Oct 2007 10:43:34 -0500 From: "Scott Marlowe" To: "=?ISO-8859-1?Q?St=E9phane_Schildknecht?=" Subject: Re: Vacuum goes worse Cc: "Tom Lane" , "pgsql-performance@postgresql.org" In-Reply-To: <4714D817.30701@postgresqlfr.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <47147AD8.9010704@postgresqlfr.org> <15640.1192544768@sss.pgh.pa.us> <4714D817.30701@postgresqlfr.org> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/189 X-Sequence-Number: 27211 On 10/16/07, St=E9phane Schildknecht wrote: > Tom Lane a =E9crit : > > =3D?ISO-8859-1?Q?St=3DE9phane_Schildknecht?=3D writes: > > > >> For some times, we have a vacuuming process on a specific table that > >> goes slower and slower. In fact, it took some 3 minutes a month ago, a= nd > >> now it take almost 20 minutes. But, if one day it take so many time, i= t > >> is possible that on the day after it will only take 4 minutes... > >> > > > > > >> I know the table in concern had 450000 tuples two months ago and now h= as > >> more than 700000 tuples in it. > >> > > > > The real question is how often do rows get updated? I suspect you > > probably need to vacuum this table more than once a day. > > > > > > To be honest, I suspect it too. But, I have been told by people using > that database they can't do vacuum more frequently than once in a day as > it increases the time to achieve concurrent operations. > That's also why they don't want to hear about autovacuum. Sounds like somebody there is operating on the belief that vacuums always cost the same amount i/o wise. With the vacuum_cost_delay setting Tim mentioned this is not true. Their concern shouldn't be with how you accomplish your job, but with you meeting certain performance criteria, and with vacuum cost delay, it is quite possible to vacuum midday with affecting the db too much. > And finally that's why I'm looking for everything I can monitor to > obtain information to convince them they're wrong and I'm right ;-) Good luck with that. I still have a boss who thinks "vacuum's not fast enough". His last experience with pgsql was in the 7.2 days. Generally he's a pretty smart guy, but he's convinced himself that PostgreSQL 8.3 and 7.2 are pretty much the same beasts. > That's also why I am so disappointed vacuum doesn't give me these 4 > hints lines. What kind of error, or output, does it give you at the end? Any hint as to why they're missing?