pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 14:02:10 -0400
Message-ID: <4259.1458237730@sss.pgh.pa.us> (raw)
In-Reply-To: <56EAF080.8040905@sigaev.ru>
References: <E1agCjy-0007Ji-On@gemulon.postgresql.org>
	<1964.1458234712@sss.pgh.pa.us>
	<56EAF080.8040905@sigaev.ru>
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Teodor Sigaev <teodor@sigaev.ru> writes:
>> It should go through SetConfigOption(); compare for example
>> tsa_set_curcfg_byname().  Which would also mean you could drop the

> Seems, also show_limit() should use GetConfigOption()?

Nah, that's overkill.  The current contents of similarity_threshold are
always the current state of the GUC variable.  The problem with just
assigning to the variable is that then guc.c doesn't know what you did
and might overwrite the value later.

			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



view thread (5+ messages)

Message-ID: <4259.1458237730@sss.pgh.pa.us>
Permalink:  ../4259.1458237730@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4259.1458237730@sss.pgh.pa.us

 · 

reply

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: <4259.1458237730@sss.pgh.pa.us>
  References: <E1agCjy-0007Ji-On@gemulon.postgresql.org> <1964.1458234712@sss.pgh.pa.us> <56EAF080.8040905@sigaev.ru> <4259.1458237730@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