> 
>         Thank you gentelmen! It seems that regexp was the reason! I enabled
> likeplanning and it i=didn't improve the performance until I replaced '~*' with
> 'LIKE'.  Thank you again!

The issue is that ~ and LIKE have similar performance.  ~* is
case-insensitive, and can not used indexes.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  [EMAIL PROTECTED]               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Reply via email to