Re: strpos() && KMP - Mailing list pgsql-patches

From Tom Lane
Subject Re: strpos() && KMP
Date
Msg-id 26247.1186009955@sss.pgh.pa.us
Whole thread Raw
In response to strpos() && KMP  (Pavel Ajtkulov <ajtkulov@acm.org>)
List pgsql-patches
Pavel Ajtkulov <ajtkulov@acm.org> writes:
> this patch allow to use Knuth-Morrison-Pratt algorithm for strpos() function
> (see Cormen et al. Introduction to Algorithms, MIT Press, 2001).

This seems like a lot of complexity added to fix a non-problem.  We've
had no complaints about the speed of those functions (at least not since
we changed the original O(N^2) method :-().

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Async Commit, v21 (now: v22)
Next
From: Neil Conway
Date:
Subject: Memory leak in tuplestore_end()