From: Tom Lane <tgl@sss.pgh.pa.us>
To: Teodor Sigaev <teodor@sigaev.ru>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
Date: Thu, 17 Mar 2016 13:11:52 -0400
Message-ID: <1964.1458234712@sss.pgh.pa.us> (raw)
In-Reply-To: <E1agCjy-0007Ji-On@gemulon.postgresql.org>
References: <E1agCjy-0007Ji-On@gemulon.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
Teodor Sigaev <teodor@sigaev.ru> writes:
> GUC variable pg_trgm.similarity_threshold insead of set_limit()
If that's to be an actual GUC variable, it's not okay for set_limit()
to just do this:
similarity_threshold = nlimit;
It should go through SetConfigOption(); compare for example
tsa_set_curcfg_byname(). Which would also mean you could drop the
range-checking code there, because guc.c would enforce it.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us, teodor@sigaev.ru
Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
In-Reply-To: <1964.1458234712@sss.pgh.pa.us>
References: <E1agCjy-0007Ji-On@gemulon.postgresql.org> <1964.1458234712@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox