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

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: LIKE query problem


  • From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • To: Marc McIntyre <mmcintyre(at)squiz(dot)net>
  • Cc: pgsql-performance(at)postgresql(dot)org
  • Subject: Re: LIKE query problem
  • Date: Mon, 18 Sep 2006 22:50:19 -0400
  • Message-id: <26900(dot)1158634219(at)sss(dot)pgh(dot)pa(dot)us>

Marc McIntyre <mmcintyre(at)squiz(dot)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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group