pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Chris Hoover <revoohc@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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:37:49 -0500
Message-ID: <1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com> (raw)
In-Reply-To: <3669.1195143924@sss.pgh.pa.us>
References: <1d219a6f0711150714j6f192548xe4c134a25e5b57b2@mail.gmail.com>
	<3669.1195143924@sss.pgh.pa.us>

On Nov 15, 2007 11:25 AM, Tom Lane <tgl@sss.pgh.pa.us> 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



view thread (4+ messages)  latest in thread

Message-ID: <1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com>
Permalink:  ../1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com/
Also on:    postgresql.org/message-id/1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com

 · 

reply

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: revoohc@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: any way to make query use index?
  In-Reply-To: <1d219a6f0711150837i26f35caek3d80fe4a569f6ebb@mail.gmail.com>

* 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