Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id EFA959F9C93 for ; Sat, 6 Oct 2007 12:11:42 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 26660-07 for ; Sat, 6 Oct 2007 12:11:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 850399F9BA9 for ; Sat, 6 Oct 2007 12:11:29 -0300 (ADT) Received: from perhan.alvh.no-ip.org (201-220-98-36.bk9-dsl.surnet.cl [201.220.98.36]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l96FBHg0005843; Sat, 6 Oct 2007 08:11:18 -0700 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9AB4E47C6E; Sat, 6 Oct 2007 11:11:15 -0400 (CLT) Date: Sat, 6 Oct 2007 11:11:15 -0400 From: Alvaro Herrera To: Jeff Frost , "'PostgreSQL Performance'" Subject: Re: query plan worse after analyze Message-ID: <20071006151115.GC5618@alvh.no-ip.org> References: <029201c807bc$f1642f60$120a0a0a@jefflap> <20071006031438.GE5031@tamriel.snowman.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071006031438.GE5031@tamriel.snowman.net> User-Agent: Mutt/1.5.16 (2007-06-11) X-Virus-Scanned: ClamAV 0.91.1/4482/Fri Oct 5 15:43:49 2007 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Sat, 06 Oct 2007 08:11:18 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200710/69 X-Sequence-Number: 27091 Stephen Frost wrote: > * Jeff Frost (jeff@frostconsultingllc.com) wrote: > > Here are the plans: > > It's probably just me but, honestly, I find it terribly frustrating to > try and read a line-wrapped explain-analyze output... I realize it > might not be something you can control in your mailer, but you might > consider putting the various plans up somewhere online (perhaps a > pastebin like http://pgsql.privatepaste.com) instead of or in addition > to sending it in the email. I've considered writing a script to unwrap the stuff, but never got around to doing it, because I need it quite often. (One problem is dealing with the several different ways of wrapping). If there are any takers I would be very thankful. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support