Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6FCC0632751 for ; Fri, 2 Jul 2010 22:44:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 62511-09 for ; Sat, 3 Jul 2010 01:44:46 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www.postnewspapers.com.au (www.postnewspapers.com.au [202.4.227.11]) by mail.postgresql.org (Postfix) with ESMTP id 6C87763244C for ; Fri, 2 Jul 2010 22:44:46 -0300 (ADT) Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by www.postnewspapers.com.au (Postfix) with ESMTP id B65A0F427E; Sat, 3 Jul 2010 09:44:42 +0800 (WST) Received: from localhost (localhost [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id D717EAFCF1; Sat, 3 Jul 2010 09:43:32 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (mail.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 2vfwBRW01JAi; Sat, 3 Jul 2010 09:43:27 +0800 (WST) Received: from [10.1.1.3] (203-206-47-136.dyn.iinet.net.au [203.206.47.136]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 5FE50AF62B; Sat, 3 Jul 2010 09:43:27 +0800 (WST) Message-ID: <4C2E9606.8050903@postnewspapers.com.au> Date: Sat, 03 Jul 2010 09:44:38 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.9) Gecko/20100423 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: Craig James CC: pgsql-performance@postgresql.org Subject: Re: Highly Efficient Custom Sorting References: <4C2D574E.5030308@postnewspapers.com.au> <4767.1278043730@sss.pgh.pa.us> <4C2E1587.70001@emolecules.com> In-Reply-To: <4C2E1587.70001@emolecules.com> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.79 tagged_above=-10 required=5 tests=BAYES_50=0.8, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201007/39 X-Sequence-Number: 39428 On 03/07/10 00:36, Craig James wrote: > Perl itself is written in C, and some of it's operations are extremely > fast. The same is true of PL/PgSQL, though ;-) The main advantage of PL/Perl is that it doesn't rely on the SPI to do everything. It's interpreted not compiled, but it has a much faster approach to interpretation than PL/PgSQL. Really, the right choice depends on exactly what the OP is doing and how, which they're not saying. Where's the code? -- Craig Ringer