Re: [pgsql-es-ayuda] operador LIKE

From: Jaime Casanova <jaime(at)2ndquadrant(dot)com>
To: Lazaro Ruben Garcia Martinez <lgarciam(at)uci(dot)cu>
Cc: Foros Postgre Ecuador <ecpug(at)postgresql(dot)org>, POSTGRES <pgsql-es-ayuda(at)postgresql(dot)org>, Milton Labanda <1000ton(dot)lab(at)gmail(dot)com>
Subject: Re: [pgsql-es-ayuda] operador LIKE
Date: 2012-05-17 19:15:01
Message-ID: CAJKUy5g478KdSq6uaw=6Z406G5aV0cmHLSi+5sdJ2ti1roMUgw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: ecpug pgsql-es-ayuda

2012/5/17 Lazaro Ruben Garcia Martinez <lgarciam(at)uci(dot)cu>
>
> Jaime podrías explicarme porque razón usar lower()/upper() junto con LIKE
> es más eficiente que ILIKE?
>

la respuesta simple es que ILIKE bajo ninguna circunstancia usara un
índice, mientras que LIKE si podra (y combinado con la funcion
lower/upper tienes el mismo efecto).

la razon por la que ILIKE no puede usar indices se me escapa en este momento

--
Jaime Casanova         www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación

In response to

Responses

Browse ecpug by date

  From Date Subject
Next Message Lazaro Ruben Garcia Martinez 2012-05-17 19:19:56 Re: [pgsql-es-ayuda] operador LIKE
Previous Message Lazaro Ruben Garcia Martinez 2012-05-17 19:02:42 Re: [pgsql-es-ayuda] operador LIKE

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Lazaro Ruben Garcia Martinez 2012-05-17 19:19:56 Re: [pgsql-es-ayuda] operador LIKE
Previous Message Alvaro Herrera 2012-05-17 19:12:35 Re: [SQL:Standard] merge