Re: [HACKERS] TODO item: Implement Boyer-Moore searching (First time hacker)
Heikki Linnakangas <[email protected]> Mon, 08 Sep 2008 09:45:18 +0300
| Newsgroups | gmane.comp.db.postgresql.devel.patches |
|---|---|
| Organization | EnterpriseDB |
| Message-ID | <[email protected]> |
Tom Lane wrote: > Heikki Linnakangas <[email protected]> writes: >> Also, it would be nice to use B-M(-H) for LIKE as well. > > Right offhand, that seems impossible, at least in patterns with %. > Or were you thinking of trying to separate out the fixed substrings > of a pattern and search for them with BMH? Yep, something like that. Even if it only handled the special case of '%foobar%', that would be nice, because that's a pretty common special case. > Anyway, it's not material for this patch, since it'd involve pretty > fundamental redesign of the LIKE code. Yep. -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com -- Sent via pgsql-patches mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-patches