Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1FGbpE81920 for ; Fri, 15 Feb 2002 11:37:51 -0500 (EST) (envelope-from nickf@ontko.com) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id LAA32272; Fri, 15 Feb 2002 11:37:52 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: , Subject: Re: create index on function - why? Date: Fri, 15 Feb 2002 11:33:41 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <3C6D3684.9040101@kencast.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Importance: Normal X-Archive-Number: 200202/178 X-Sequence-Number: 6604 I don't know yet if it will help me. (I was doing empirical research when I ran into my problem.) My reasoning went like this: Since using a function in my "where" clause forces postgresql to do a table scan instead of using my index on the field, I was hoping to build an index on the function, which *would* get used. I'm pretty sure this will work, but I'll post my results to the list if I find that it doesn't work. -Nick > -----Original Message----- > From: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Wei Weng > Sent: Friday, February 15, 2002 11:26 AM > To: pgsql-sql@postgresql.org > Subject: [SQL] create index on function - why? > > > I can understand the rationale behind creating index on tables, it > speeds up the searching. > > But what is the rationale behind creating index on a function? how does > it help with the database performance? > > Thank you. > > -- > Wei Weng > Network Software Engineer > KenCast Inc. > > > > ---------------------------(end of broadcast)--------------------------- > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org >