Re: [HACKERS] similarity() result for two trigram-less strings

2013-02-12 Thread Josh Berkus
> Although I can see a case for returning 1, I'm inclined to think that > returning 0 is a better idea. Thoughts? Intuitively, I'd expect 0. -- Josh Berkus PostgreSQL Experts Inc. http://pgexperts.com -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to

[HACKERS] similarity() result for two trigram-less strings

2013-02-12 Thread Tom Lane
Some further thought about bug #7867 suggested that what's probably happening is the submitter's installation doesn't think that any of the Cyrillic letters are letters, so that no trigrams are identified in either string. Whereupon you get a 0/0 result from cnt_sml: regression=# select similarit