From: Teodor Sigaev <teodor@sigaev.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-committers@postgresql.org
Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
Date: Thu, 17 Mar 2016 20:31:01 +0300
Message-ID: <56EAE9D5.9020203@sigaev.ru> (raw)
In-Reply-To: <1964.1458234712@sss.pgh.pa.us>
References: <E1agCjy-0007Ji-On@gemulon.postgresql.org>
<1964.1458234712@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>
> 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.
will fix
--
Teodor Sigaev E-mail: teodor@sigaev.ru
WWW: http://www.sigaev.ru/
--
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: teodor@sigaev.ru, tgl@sss.pgh.pa.us
Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit()
In-Reply-To: <56EAE9D5.9020203@sigaev.ru>
References: <E1agCjy-0007Ji-On@gemulon.postgresql.org> <1964.1458234712@sss.pgh.pa.us> <56EAE9D5.9020203@sigaev.ru>
* 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