"Chris Hoover" <revoohc(at)gmail(dot)com> writes:
> On Nov 15, 2007 11:25 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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