pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marc McIntyre <mmcintyre@squiz.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: LIKE query problem
Date: Tue, 19 Sep 2006 13:16:48 +1000
Message-ID: <450F6120.6010208@squiz.net> (raw)
In-Reply-To: <26900.1158634219@sss.pgh.pa.us>
References: <450F303A.6090603@squiz.net>
	<26900.1158634219@sss.pgh.pa.us>

Thanks Tom,

Is that documented somewhere? I can't seem to see any mention of it in 
the docs.

Tom Lane wrote:
> Marc McIntyre <mmcintyre@squiz.net> writes:
>   
>> ... Is there a way to perform this efficiently in one query ?
>>     
>
> No, because you're hoping for an indexscan optimization of a LIKE
> query, and that can only happen if the pattern is a plan-time constant.
>
> 			regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly
>
>   




view thread (3+ messages)

Message-ID: <450F6120.6010208@squiz.net>
Permalink:  ../450F6120.6010208@squiz.net/
Also on:    postgresql.org/message-id/450F6120.6010208@squiz.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: mmcintyre@squiz.net, tgl@sss.pgh.pa.us
  Subject: Re: LIKE query problem
  In-Reply-To: <450F6120.6010208@squiz.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox