Re: any way to make query use index?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Nov 15, 2007 11:25 AM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:

> > Here is the table definition:
> > CREATE TABLE rev_code_desc
> > (
> >   rev_code character(4) NOT NULL,

> If changing the queries seems impractical, you could add an index on
> rev_code::text, or reconsider the choice of column type.
>
>                         regards, tom lane
>

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 "::""

Thanks

Chris

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
       message can get through to the mailing list cleanly

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux