Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agblg-00007D-5O for pgsql-committers@arkaria.postgresql.org; Thu, 17 Mar 2016 17:31:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agblf-0004Fd-F5 for pgsql-committers@arkaria.postgresql.org; Thu, 17 Mar 2016 17:31:27 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agblS-0003md-EV for pgsql-committers@postgresql.org; Thu, 17 Mar 2016 17:31:14 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agblH-0000In-8V for pgsql-committers@postgresql.org; Thu, 17 Mar 2016 17:31:13 +0000 Received: from xor.sai.msu.ru (newmail.postgrespro.ru [93.174.131.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 9970EB191EC; Thu, 17 Mar 2016 20:31:01 +0300 (MSK) Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit() To: Tom Lane Cc: pgsql-committers@postgresql.org References: <1964.1458234712@sss.pgh.pa.us> From: Teodor Sigaev Message-ID: <56EAE9D5.9020203@sigaev.ru> Date: Thu, 17 Mar 2016 20:31:01 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <1964.1458234712@sss.pgh.pa.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org > 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