Improve the gin index scan performance in pg_trgm.

Teodor Sigaev <teodor@sigaev.ru>

Commit: 25bfa7efd037a3c44d6a2989d18f55758090e8a9
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2015-12-25T10:05:13Z
Releases: 9.6.0
Improve the gin index scan performance in pg_trgm.

Previous coding assumes too pessimistic upper bound of similarity
in consistent method of GIN.

Author: Fornaroli Christophe with comments by me.

Files

PathChange+/−
contrib/pg_trgm/trgm_gin.c modified +20 −8