On Fri, Sep 30, 2011 at 1:16 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Hmm. Are there any other datatypes for which the penalty function has
> to duplicate effort? I'm disinclined to fool with this if pg_trgm is
> the only example ... but if it's not, maybe we should do something
> about that instead of micro-optimizing makesign.
>
GiST for tsearch works similarly.
------
With best regards,
Alexander Korotkov.