From: Tom Lane <tgl@sss.pgh.pa.us>
To: Roberto Bertolusso <rb@desinet-sa.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Cannot CREATE INDEX that contains a function
Date: Thu, 25 Jan 2001 22:47:23 -0500
Message-ID: <28424.980480843@sss.pgh.pa.us> (raw)
In-Reply-To: <01012418293404.01344@server.rbsoft>
References: <01012418293404.01344@server.rbsoft>
Roberto Bertolusso <rb@desinet-sa.com> writes:
> testdb=# CREATE TABLE test (username varchar(50));
> CREATE
> testdb=# CREATE UNIQUE INDEX test_index ON test (lower(username));
> ERROR: DefineIndex: function 'lower(varchar)' does not exist
Short answer in 7.0.* is to make the column be type text not varchar.
7.1 is more flexible about this ...
regards, tom lane
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: tgl@sss.pgh.pa.us, rb@desinet-sa.com
Subject: Re: Cannot CREATE INDEX that contains a function
In-Reply-To: <28424.980480843@sss.pgh.pa.us>
References: <01012418293404.01344@server.rbsoft> <28424.980480843@sss.pgh.pa.us>
* 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