X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 05414D9FD8 for ; Tue, 4 Oct 2005 07:10:40 -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 47276-01 for ; Tue, 4 Oct 2005 10:10:35 +0000 (GMT) Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by svr1.postgresql.org (Postfix) with ESMTP id 9D7C0D9FEF for ; Tue, 4 Oct 2005 07:10:32 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 928A531059; Tue, 4 Oct 2005 12:10:35 +0200 (MET DST) From: "Jan Aerts" X-Newsgroups: pgsql.performance Subject: Re: index on custom function; explain Date: 4 Oct 2005 03:10:28 -0700 Organization: http://groups.google.com Lines: 10 Message-ID: <1128420628.326795.158780@g47g2000cwa.googlegroups.com> References: <1128352451.312090.37640@g44g2000cwa.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: <1128352451.312090.37640@g44g2000cwa.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.8) Gecko/20050511 Firefox/1.0.4,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 arcl11.cc.bbsrc.ac.uk:8080 (squid/2.5.STABLE9) Complaints-To: groups-abuse@google.com Injection-Info: g47g2000cwa.googlegroups.com; posting-host=149.155.96.6; posting-account=Qght7Q0AAACFr4FK4UX3lLicX5ApbR8D To: pgsql-performance@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200510/72 X-Sequence-Number: 14840 Some additional thoughts: what appears to take the most time (i.e. account for the highest cost in the explain), is _not_ running the function itself (cost=0.00..0.01), but comparing the result from that function with the name1 column in the mappings table (cost=0.00..35935.05). Am I right? (See EXPLAIN in previous post.) If so: that's pretty strange, because the name1-column in the mappings table is indexed... jan.