pg_trgm's set_limit() now uses SetConfigOption()

Teodor Sigaev <teodor@sigaev.ru>

Commit: aa698d753566f68bdd54881d30b1a515b0327b0e
Author: Teodor Sigaev <teodor@sigaev.ru>
Date: 2016-03-18T09:26:27Z
Releases: 9.6.0
pg_trgm's set_limit() now uses SetConfigOption()

Deprecated set_limit() is modified to use SetConfigOption() to set
similarity_threshold which is actually an instance of
pg_trgm.similarity_threshold GUC variable. Previous coding directly sets
similarity_threshold what could cause an inconsistency between states of
actual variable and GUC representation.

Per gripe from Tom Lane

Files

PathChange+/−
contrib/pg_trgm/trgm_op.c modified +11 −5