Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1agbSo-0007ZO-Iw for pgsql-committers@arkaria.postgresql.org; Thu, 17 Mar 2016 17:11:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1agbSo-0000lV-3L for pgsql-committers@arkaria.postgresql.org; Thu, 17 Mar 2016 17:11:58 +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 1agbSn-0000lP-OV for pgsql-committers@postgresql.org; Thu, 17 Mar 2016 17:11:57 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1agbSj-0008Iz-Mm for pgsql-committers@postgresql.org; Thu, 17 Mar 2016 17:11:56 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u2HHBq2O001965; Thu, 17 Mar 2016 13:11:52 -0400 From: Tom Lane To: Teodor Sigaev cc: pgsql-committers@postgresql.org Subject: Re: pgsql: GUC variable pg_trgm.similarity_threshold insead of set_limit() In-reply-to: References: Comments: In-reply-to Teodor Sigaev message dated "Wed, 16 Mar 2016 14:48:02 -0000" Date: Thu, 17 Mar 2016 13:11:52 -0400 Message-ID: <1964.1458234712@sss.pgh.pa.us> 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 Teodor Sigaev 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