pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philip Warner <pjw@rhyme.com.au>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: wweng@kencast.com
Cc: pgsql-sql@postgresql.org
Subject: Re: create index on function - why?
Date: Sun, 22 Dec 2002 21:18:22 +1100
Message-ID: <5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au> (raw)
In-Reply-To: <14409.1013791606@sss.pgh.pa.us>
References: <3C6D3684.9040101@kencast.com>
	<3C6D3684.9040101@kencast.com>

At 11:46 AM 15/02/2002 -0500, Tom Lane wrote:
>A functional index is sort of like a hidden, precomputed column added to
>your table.

One of the things I keep running into is the desire for a mixed 
functional/data index. I know the workaround is to build a function that 
combines all fields, but would it be hard to allow mixed indexes:

     create table users(id integer, last_name text);
     create index users_id_name on users(id,lower(name));

?




----------------------------------------------------------------
Philip Warner                    |     __---_____
Albatross Consulting Pty. Ltd.   |----/       -  \
(A.B.N. 75 008 659 498)          |          /(@)   ______---_
Tel: (+61) 0500 83 82 81         |                 _________  \
Fax: (+61) 03 5330 3172          |                 ___________ |
Http://www.rhyme.com.au          |                /           \|
                                  |    --________--
PGP key available upon request,  |  /
and from pgp5.ai.mit.edu:11371   |/




view thread (10+ messages)

Message-ID: <5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au>
Permalink:  ../5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au/
Also on:    postgresql.org/message-id/5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: pjw@rhyme.com.au, tgl@sss.pgh.pa.us, wweng@kencast.com
  Subject: Re: create index on function - why?
  In-Reply-To: <5.1.0.14.0.20021222211601.04f26150@mail.rhyme.com.au>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox