From: | Joseph Shraibman <jks(at)selectacast(dot)net> |
---|---|
To: | "Michael Ryan S(dot) Puncia" <mpuncia(at)census(dot)gov(dot)ph> |
Subject: | Re: Using LIKE expression problem.. |
Date: | 2004-05-19 02:51:30 |
Message-ID: | 40AACBB2.6060001@selectacast.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
Use the text_pattern_ops operator when creating the index, see:
http://www.postgresql.org/docs/7.4/static/indexes-opclass.html
Michael Ryan S. Puncia wrote:
> Sorry .. I am a newbie and I don't know :(
> How can I know that I am in C locale ?
> How can I change my database to use C locale?
>
>
>
> -----Original Message-----
> From: pgsql-performance-owner(at)postgresql(dot)org
> [mailto:pgsql-performance-owner(at)postgresql(dot)org] On Behalf Of Christopher
> Kings-Lynne
> Sent: Wednesday, May 12, 2004 3:59 PM
> To: Michael Ryan S. Puncia
> Cc: pgsql-performance(at)postgresql(dot)org
> Subject: Re: [PERFORM] Using LIKE expression problem..
>
> Are you in a non-C locale?
>
> Chris
>
> Michael Ryan S. Puncia wrote:
>
>
>>Yes , I already do that but the same result .. LIKE uses seq scan
>>
>>-----Original Message-----
>>From: pgsql-performance-owner(at)postgresql(dot)org
>>[mailto:pgsql-performance-owner(at)postgresql(dot)org] On Behalf Of Christopher
>>Kings-Lynne
>>Sent: Wednesday, May 12, 2004 2:48 PM
>>To: Michael Ryan S. Puncia
>>Cc: pgsql-performance(at)postgresql(dot)org
>>Subject: Re: [PERFORM] Using LIKE expression problem..
>>
>>
>>
>>>In the query plan ..it uses seq scan rather than index scan .. why ? I
>>>have index on lastname, firtname.
>>
>>
>>Have you run VACUUM ANALYZE; on the table recently?
>>
>>Chris
>>
>>
>>---------------------------(end of broadcast)---------------------------
>>TIP 7: don't forget to increase your free space map settings
>>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
From | Date | Subject | |
---|---|---|---|
Next Message | Marty Scholes | 2004-05-19 03:38:25 | Re: Quad processor options |
Previous Message | Litao Wu | 2004-05-18 21:13:21 | where to find out when a table was last analyzed? |