Re: pg_trgm - Mailing list pgsql-hackers

From Tom Lane
Subject Re: pg_trgm
Date
Msg-id 15313.1274971977@sss.pgh.pa.us
Whole thread Raw
In response to Re: pg_trgm  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: pg_trgm
List pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> ! #define iswordchr(c)    (t_isalpha(c) || t_isdigit(c) || (lc_ctype_is_c() && !t_isspace(c)))

This seems entirely arbitrary.  It might "fix" things in your view
but it will break the longstanding behavior for other people.

I think a more appropriate type of fix would be to expose the
KEEPONLYALNUM option as a GUC, or some other way of letting the
user decide what he wants.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: pg_trgm
Next
From: Greg Stark
Date:
Subject: Re: pg_trgm