From: Tom Lane <tgl@sss.pgh.pa.us>
To: Chris Hoover <revoohc@gmail.com>
Cc: pgsql-admin@postgresql.org Admin <pgsql-admin@postgresql.org>
Subject: Re: any way to make query use index?
Date: Thu, 15 Nov 2007 11:52:05 -0500
Message-ID: <4199.1195145525@sss.pgh.pa.us> (raw)
In-Reply-To: <1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com>
References: <1d219a6f0711150714j6f192548xe4c134a25e5b57b2@mail.gmail.com>
<3669.1195143924@sss.pgh.pa.us>
<1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com>
"Chris Hoover" <revoohc@gmail.com> writes:
> On Nov 15, 2007 11:25 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> If changing the queries seems impractical, you could add an index on
>> rev_code::text, or reconsider the choice of column type.
> how would you create this index? create index rev_code_text_idx on
> rev_code_desc(rev_code::text) fails complaining "ERROR: syntax error
> at or near "::""
You need more parentheses --- read the docs about expression indexes.
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, revoohc@gmail.com
Subject: Re: any way to make query use index?
In-Reply-To: <4199.1195145525@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