Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D83AF64FC49 for ; Fri, 21 Nov 2008 15:17:07 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 55829-03 for ; Fri, 21 Nov 2008 15:17:04 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by mail.postgresql.org (Postfix) with ESMTP id 6DA9465016B for ; Fri, 21 Nov 2008 15:17:03 -0400 (AST) Received: from perhan.alvh.no-ip.org (190-95-27-86.bk17-dsl.surnet.cl [190.95.27.86]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id mALJLR1F010667 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Nov 2008 11:21:31 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 987CA47CC7; Fri, 21 Nov 2008 16:16:46 -0300 (CLST) Date: Fri, 21 Nov 2008 16:16:46 -0300 From: Alvaro Herrera To: Andrus Cc: Richard Huxton , PFC , pgsql-performance@postgresql.org Subject: Re: Hash join on int takes 8..114 seconds Message-ID: <20081121191646.GH5210@alvh.no-ip.org> References: <49253FE1.3070706@archonet.com> <0205611B528C4C2CBA99AFC64E57D6E8@andrusnotebook> <75A918DFCF25470FAF96B3FE3D25A38B@andrusnotebook> <4926E2B2.9050202@archonet.com> <8A78204AA6D44C04B053E6412B244E13@andrusnotebook> <8D7F64CF7F614E13AC554D6CF86F39B2@andrusnotebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8D7F64CF7F614E13AC554D6CF86F39B2@andrusnotebook> User-Agent: Mutt/1.5.18 (2008-05-17) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Fri, 21 Nov 2008 11:21:31 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200811/190 X-Sequence-Number: 31921 Andrus wrote: > I discovered vacuum_cost_delay=2000 option. Will this remove blocking > issue and allow vacuum full to work ? No. Are you really using vacuum_cost_delay=2000? If so, therein lies your problem. That's a silly value to use for that variable. Useful values are in the 20-40 range probably, or maybe 10-100 being extremely generous. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support