Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 7EF4C1337BA3 for ; Sat, 16 Apr 2011 04:17:18 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 70786-06 for ; Sat, 16 Apr 2011 07:17:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.catalyst.net.nz (bertrand.catalyst.net.nz [202.78.240.40]) by mail.postgresql.org (Postfix) with ESMTP id A13611337B9C for ; Sat, 16 Apr 2011 04:17:09 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 1EEAC3219E; Sat, 16 Apr 2011 19:17:07 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V9XdS2axSWkQ; Sat, 16 Apr 2011 19:17:02 +1200 (NZST) Received: from [192.168.1.11] (122-60-64-230.jetstream.xtra.co.nz [122.60.64.230]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id AEF3D32196; Sat, 16 Apr 2011 19:17:01 +1200 (NZST) Message-ID: <4DA9426C.6020703@catalyst.net.nz> Date: Sat, 16 Apr 2011 19:17:00 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: Kevin Grittner CC: pgsql-bugs@postgresql.org Subject: Re: Massive memory use for star query References: <4DA7CB25.5040102@catalyst.net.nz> <4DA808E2020000250003C881@gw.wicourts.gov> In-Reply-To: <4DA808E2020000250003C881@gw.wicourts.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/121 X-Sequence-Number: 30040 On 16/04/11 01:59, Kevin Grittner wrote: > Mark Kirkwood wrote: > >> Here's a simplified example using synthetic data (see attached to >> generate if desired): > > Doesn't work for me: > > kgrittn@kgrittn-desktop:~/work/starjoin$ ./gendata.pl > generate cat > cannot open cat.dat: No such file or directory at ./gendata.pl line > 17. Apologies Kevin, I stuffed up the edit to supposedly make it easier for you all to choose your own place to write the files (left one hard coded for the table 'cat'). Cheers Mark