pgsql: pg_trgm's set_limit() now uses SetConfigOption()

From: Teodor Sigaev <teodor(at)sigaev(dot)ru>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: pg_trgm's set_limit() now uses SetConfigOption()
Date: 2016-03-18 09:41:36
Message-ID: E1agquW-0005wX-5H@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/aa698d753566f68bdd54881d30b1a515b0327b0e

Modified Files
--------------
contrib/pg_trgm/trgm_op.c | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-03-18 13:39:34 pgsql: Various minor corrections of and improvements to comments.
Previous Message Aleksander Alekseev 2016-03-18 07:54:49 Re: pgsql: Improve memory management for external sorts.