Skip site navigation (1) Skip section navigation (2)

Re: Nested Loop "Killer" on 8.1

From: Mark Mielke <mark(at)mark(dot)mielke(dot)cc>
To: Greg Stark <gsstark(at)mit(dot)edu>
Cc: Dave North <DNorth(at)signiant(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Nested Loop "Killer" on 8.1
Date: 2009-06-25 20:57:42
Message-ID: 4A43E4C6.5030506@mark.mielke.cc (view raw or flat)
Thread:
Lists: pgsql-performance
On 06/25/2009 04:36 PM, Greg Stark wrote:
>> AND
>>     web_user_property_directory_outbox.prop_key like
>> 'location_node_directory_outbox'
>>      
>
> Why use "like" for a constant string with no % or _ characters? If you
> used = the planner might be able to come up with a better estimate

Any reason why "like" with a constant string without % or _ is not 
optimized to = today?

Cheers,
mark

-- 
Mark Mielke<mark(at)mielke(dot)cc>

In response to

pgsql-performance by date

Next:From: Tom LaneDate: 2009-06-25 21:05:30
Subject: Re: Nested Loop "Killer" on 8.1
Previous:From: Greg StarkDate: 2009-06-25 20:36:43
Subject: Re: Nested Loop "Killer" on 8.1

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group