Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 1BEBAB5DC1B for ; Thu, 22 Sep 2011 08:22:59 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 17061-06 for ; Thu, 22 Sep 2011 11:22:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from exprod7og115.obsmtp.com (exprod7og115.obsmtp.com [64.18.2.217]) by mail.postgresql.org (Postfix) with ESMTP id CCEF0B5DC1A for ; Thu, 22 Sep 2011 08:22:50 -0300 (ADT) Received: from mail-fx0-f45.google.com ([209.85.161.45]) (using TLSv1) by exprod7ob115.postini.com ([64.18.6.12]) with SMTP ID DSNKTnsais7iIj1xFBE7gRx7bkuKG2BH4M+R@postini.com; Thu, 22 Sep 2011 04:22:51 PDT Received: by fxh13 with SMTP id 13so2766961fxh.4 for ; Thu, 22 Sep 2011 04:22:43 -0700 (PDT) Received: by 10.223.29.203 with SMTP id r11mr2925201fac.10.1316690563403; Thu, 22 Sep 2011 04:22:43 -0700 (PDT) Received: from [192.168.1.183] (dsl-hkibrasgw2-ff7ac300-240.dhcp.inet.fi. [88.195.122.240]) by mx.google.com with ESMTPS id y24sm7166703fan.24.2011.09.22.04.22.40 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 22 Sep 2011 04:22:41 -0700 (PDT) Message-ID: <4E7B1A7C.80103@enterprisedb.com> Date: Thu, 22 Sep 2011 14:22:36 +0300 From: Heikki Linnakangas User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; fi-FI; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: Alexander Korotkov CC: pgsql-hackers Subject: Re: Double sorting split patch References: <4E72197B.9040602@enterprisedb.com> <4E732DFF.9070900@enterprisedb.com> <4E74D21C.2070503@enterprisedb.com> In-Reply-To: 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.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201109/1116 X-Sequence-Number: 195305 > ! /* > ! * Calculate delta between penalties of join "common entries" to > ! * different groups. > ! */ > ! for (i = 0; i < commonEntriesCount; i++) > { > ! double lower, > ! upper; > ! > ! box = DatumGetBoxP(entryvec->vector[commonEntries[i].index].key); > ! if (context.dim == 0) > ! { > ! lower = box->low.x; > ! upper = box->high.x; > ! } > ! else > ! { > ! lower = box->low.y; > ! upper = box->high.y; > ! } > ! commonEntries[i].delta = Abs(box_penalty(leftBox, box) - > ! box_penalty(rightBox, box)); > } 'lower' and 'upper' are not used for anything in the above. Is that just dead code that can be removed, or is there something missing that should be using them? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com