X-Original-To: pgsql-admin@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 5D3769250F7 for ; Thu, 22 May 2003 09:22:44 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 13123-04 for ; Thu, 22 May 2003 09:22:12 -0400 (EDT) Received: from freedom.norma.perm.ru (unknown [212.33.229.153]) by developer.postgresql.org (Postfix) with ESMTP id 32A5592623E for ; Thu, 22 May 2003 08:37:39 -0400 (EDT) Received: from emz.norma.com ([192.168.3.169]) by freedom.norma.perm.ru (8.12.9/8.12.9) with ESMTP id h4MCb122038344; Thu, 22 May 2003 18:37:01 +0600 (YEKST) (envelope-from emz@norma.perm.ru) Date: Thu, 22 May 2003 18:37:01 +0600 From: "Eugene M. Zheganin" X-Mailer: The Bat! (v1.62 Christmas Edition) Personal Reply-To: "Eugene M. Zheganin" Organization: Norma, Ltd. X-Priority: 3 (Normal) Message-ID: <94981743421.20030522183701@norma.perm.ru> To: Thierry Missimilly Cc: pgsql-admin@postgresql.org Subject: Re: Full vacuuming of BIG tables takes too long In-Reply-To: <3ECCB856.C3DB2926@BULL.NET> References: <54953117843.20030522103956@norma.perm.ru> <3ECCB856.C3DB2926@BULL.NET> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-22.9 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES,REPLY_WITH_QUOTES version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/294 X-Sequence-Number: 8856 Hello Thierry, Thursday, May 22, 2003, 5:45:26 PM, you wrote: TM> Hi, TM> I don't have a solution but : TM> 1) Is your system spending time in Wait I/O, while vacuum analyze is running TM> ? Almost no. During fist 30 mins summary I/O (iostat 1) is 20/25 megs/sec, then only 3-5 megs/sec. the "i/o wait" counters in cpu activity are not too high. TM> Perhaps, you can save time by incrising I/O throughput. I.e. to use SCSI-HDD ? 8)) May be. But I stall hope tha the problem can be solved by increasing memory/tuning initialization parameters... TM> 2) In the alternative dump/recreate/restore, do you recreate the Foreign Key TM> ? This step takes long time (depending of your Database schema). I have try TM> this scenario : TM> Dump data / Drop Foreign Key / Truuncate Tables / restore / Recreate the TM> Foreign Key TM> The step Recreate FK takes 2 times the four first steps. I don't use foreign keys. Only primary keys. There is only 3 tables in that db. 99% of space is taken by one table. -- Best regards, Eugene mailto:emz@norma.perm.ru