Re: Use index for upper(customername) like 'ABC%'

From: "Andrus" <kobruleht2(at)hot(dot)ee>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Use index for upper(customername) like 'ABC%'
Date: 2008-02-25 19:47:58
Message-ID: fpv72p$1le9$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> CREATE INDEX ie_cust_upper_name ON customer ( UPPER( customername ) )
> WHERE ( UPPER(customername) LIKE 'ABC%' );

ABC is different at every time.

This is first letters of customer name entered by user.
So I cannot add ABC to index.

Andrus.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dan Armbrust 2008-02-25 20:13:50 Windows 8.3 installer leaves a debug flag on?
Previous Message Wenjian Yang 2008-02-25 19:46:25 give a hand to a user having trouble with MySQL?