Received: from wolff.to (wolff.to [66.92.219.49]) by postgresql.org (8.11.3/8.11.4) with SMTP id g1FGxrE12095 for ; Fri, 15 Feb 2002 11:59:53 -0500 (EST) (envelope-from bruno@wolff.to) Received: (qmail 2109 invoked by uid 500); 15 Feb 2002 17:01:28 -0000 Date: Fri, 15 Feb 2002 11:01:28 -0600 From: Bruno Wolff III To: Wei Weng Cc: pgsql-sql@postgresql.org Subject: Re: create index on function - why? Message-ID: <20020215170128.GB2025@wolff.to> Mail-Followup-To: Wei Weng , pgsql-sql@postgresql.org References: <3C6D3684.9040101@kencast.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C6D3684.9040101@kencast.com> User-Agent: Mutt/1.3.25i X-Archive-Number: 200202/180 X-Sequence-Number: 6606 On Fri, Feb 15, 2002 at 11:25:40AM -0500, Wei Weng wrote: > 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? If a where clause includes a function reference, than an index on that function can speed up finding rows that satisfy the where clause.