postgresql/contrib/pg_trgm
Tom Lane f73a16340c Fix contrib/pg_trgm's similarity() function for trigram-free strings.
Cases such as similarity('', '') produced a NaN result due to computing
0/0.  Per discussion, make it return zero instead.

This appears to be the basic cause of bug #7867 from Michele Baravalle,
although it remains unclear why her installation doesn't think Cyrillic
letters are letters.

Back-patch to all active branches.
2013-02-13 14:07:17 -05:00
..
data trgm - Trigram matching for PostgreSQL 2004-05-31 17:18:12 +00:00
expected Fix contrib/pg_trgm's similarity() function for trigram-free strings. 2013-02-13 14:07:17 -05:00
sql Fix contrib/pg_trgm's similarity() function for trigram-free strings. 2013-02-13 14:07:17 -05:00
.gitignore Support "make check" in contrib 2011-04-25 22:27:11 +03:00
Makefile Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
pg_trgm--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:36 -04:00
pg_trgm--unpackaged--1.0.sql Throw a useful error message if an extension script file is fed to psql. 2011-10-12 15:45:36 -04:00
pg_trgm.control Convert contrib modules to use the extension facility. 2011-02-13 22:54:49 -05:00
trgm.h pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_gin.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_gist.c pgindent run before PG 9.1 beta 1. 2011-04-10 11:42:00 -04:00
trgm_op.c Fix contrib/pg_trgm's similarity() function for trigram-free strings. 2013-02-13 14:07:17 -05:00