X-Original-To: pgsql-bugs-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A44F79FA4A8 for ; Fri, 21 Jul 2006 15:28:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 04445-01 for ; Fri, 21 Jul 2006 15:28:06 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from wolff.to (wolff.to [66.93.197.194]) by postgresql.org (Postfix) with SMTP id 3C6C39FA5CD for ; Fri, 21 Jul 2006 15:28:06 -0300 (ADT) Received: (qmail 26646 invoked by uid 500); 21 Jul 2006 18:33:43 -0000 Date: Fri, 21 Jul 2006 13:33:43 -0500 From: Bruno Wolff III To: Alaa El Gohary Cc: pgsql-bugs@postgresql.org, pgsql-performance@postgresql.org Subject: Re: BUG #2543: Performance delay acrros the same day Message-ID: <20060721183343.GA21995@wolff.to> Mail-Followup-To: pgsql-performance@postgresql.org, Alaa El Gohary , bruno@wolff.to References: <200607210741.k6L7f2VL074357@wwwmaster.postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607210741.k6L7f2VL074357@wwwmaster.postgresql.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200607/96 X-Sequence-Number: 15441 On Fri, Jul 21, 2006 at 07:41:02 +0000, Alaa El Gohary wrote: > > The following bug has been logged online: The report below isn't a bug, its a performance question and should have been sent to pgsql-performance@postgresql.org. I am redirecting replies there. > A query on the postgresql DB takes about 5 seconds and then it starts to > take more time till it reaches about 60 seconds by the end of the same day. > I tried vacuum but nothing changed the only thing that works is to dump the > DB ,drop and create a new one with the dump taken. > i need to know if there is any way to restore the performance back without > the need for drop and create > cause i can't do this accross the day You most likely aren't vacuuming often enough and/or don't have your FSM setting high enough.