From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marc McIntyre <mmcintyre@squiz.net>
Cc: pgsql-performance@postgresql.org
Subject: Re: LIKE query problem
Date: Mon, 18 Sep 2006 22:50:19 -0400
Message-ID: <26900.1158634219@sss.pgh.pa.us> (raw)
In-Reply-To: <450F303A.6090603@squiz.net>
References: <450F303A.6090603@squiz.net>
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
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: tgl@sss.pgh.pa.us, mmcintyre@squiz.net
Subject: Re: LIKE query problem
In-Reply-To: <26900.1158634219@sss.pgh.pa.us>
* 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