Re: Create index ... On ... (lower(field1), lower(field2)) doesn't work?

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Glen Parker <glenebob(at)nwlink(dot)com>
Cc: Pg-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Create index ... On ... (lower(field1), lower(field2)) doesn't work?
Date: 2002-08-08 13:11:00
Message-ID: 20020808131100.GA13170@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Aug 07, 2002 at 16:51:07 -0700,
Glen Parker <glenebob(at)nwlink(dot)com> wrote:
> Creating indexes on multiple function-modified fields is illegal...
> Parser bug?
> Example:
>
> testdb=# create index idx_test on test (lower(field1), lower(field2));
> ERROR: parser: parse error at or near ","
>
> Any way around this?

I believe the current work around is to create a composite function
that returns something indexable. This isn't quite the same since you
won't be able to use the index for just one of the functions. If you
need that as well, you will need to create a second index.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Holger Klawitter 2002-08-08 13:16:49 Re: double quotes in unicode dbs
Previous Message Thomas Beutin 2002-08-08 13:08:08 Re: double quotes in unicode dbs