Re: Need to improve performance - Mailing list pgsql-general

From Bruce Momjian
Subject Re: Need to improve performance
Date
Msg-id 200006231806.OAA19976@candle.pha.pa.us
Whole thread Raw
In response to Re: Need to improve performance  (Vassili A Akimov <vassili@erols.com>)
List pgsql-general
>
>         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
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Jim Mercer
Date:
Subject: Re: followup to SELECT/INSERT problem
Next
From: "K Parker"
Date:
Subject: re: insert or update