Re: What type of index do I need for this JOIN?

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: What type of index do I need for this JOIN?
Date: 2013-08-14 08:57:00
Message-ID: 520B465C.4040100@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/13/2013 8:34 PM, Robert James wrote:
> I'm confused: What's the difference between
> col LIKE 'foo%'
> and
> col LIKE f1 || '%'
> ?
> Either way, it's anchored to the beginning of the string.

the first one can be analyzed by the planner, the latter would be much
harder to pre-figure.

--
john r pierce 37N 122W
somewhere on the middle of the left coast

In response to

Browse pgsql-general by date

  From Date Subject
Next Message ascot.moss@gmail.com 2013-08-14 09:26:14 Re: Recovery.conf PITR by recovery_target_time
Previous Message raghu ram 2013-08-14 06:22:25 Re: Need some basic information