pg_trgm's set_limit() now uses SetConfigOption()
authorTeodor Sigaev <teodor@sigaev.ru>
Fri, 18 Mar 2016 09:26:27 +0000 (12:26 +0300)
committerTeodor Sigaev <teodor@sigaev.ru>
Fri, 18 Mar 2016 09:26:27 +0000 (12:26 +0300)
commitaa698d753566f68bdd54881d30b1a515b0327b0e
tree9beca35f1faacd6cffb0bbb27dc13b2f191766c2
parent696684d878747a1a5cfae01887404629c40c09dd
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
contrib/pg_trgm/trgm_op.c