From: pierre <pierre@desertmoon.com>
To: pgsql-sql@postgreSQL.org
Subject: Using lower in create index
Date: Tue, 10 Nov 1998 19:20:32 -0600
Message-ID: <199811110120.BAA68486@out1.ibm.net> (raw)
I've been trying to create an index on a varchar field and I've tried
using the following to create the index.
create table subject (
name varchar(85)
);
create index subject_idx on subject using btree(lower(name) text_ops);
Gives me an error that the function lower(varchar) doesn't exist. I've
tried
placing a text(name) to force the arg to a text value, but get a syntax
error.
Anyone have Ideas on creating a lowercase index on a field that isn't
always lowercase?
Pierre
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pierre@desertmoon.com
Subject: Re: Using lower in create index
In-Reply-To: <199811110120.BAA68486@out1.ibm.net>
References: <199811110120.BAA68486@out1.ibm.net>
* 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