X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3B21153366 for ; Tue, 19 Apr 2005 21:30:53 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 79186-10 for ; Wed, 20 Apr 2005 00:30:51 +0000 (GMT) Received: from flake.decibel.org (flake.decibel.org [67.100.216.10]) by svr1.postgresql.org (Postfix) with ESMTP id F0FC6529D4 for ; Tue, 19 Apr 2005 21:30:50 -0300 (ADT) Received: by flake.decibel.org (Postfix, from userid 1001) id 47B7C15486; Tue, 19 Apr 2005 19:30:54 -0500 (CDT) Date: Tue, 19 Apr 2005 19:30:54 -0500 From: "Jim C. Nasby" To: Dawid Kuroczko Cc: pgsql-performance@postgresql.org Subject: Re: immutable functions vs. join for lookups ? Message-ID: <20050420003054.GV58835@decibel.org> References: <6EE64EF3AB31D5448D0007DD34EEB3415C2596@Herge.rcsinc.local> <758d5e7f05041807194a78b55a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <758d5e7f05041807194a78b55a@mail.gmail.com> X-Operating-System: FreeBSD 4.11-RELEASE i386 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.8i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/475 X-Sequence-Number: 11872 You should re-run the function test using SQL as the function language instead of plpgsql. There might be some performance to be had there. -- Jim C. Nasby, Database Consultant decibel@decibel.org Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you want to go today?" Linux: "Where do you want to go tomorrow?" FreeBSD: "Are you guys coming, or what?"