Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC3Lz-0005VA-67 for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 12:51:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eC3Ly-0000MO-Ce for pgsql-bugs@arkaria.postgresql.org; Tue, 07 Nov 2017 12:51:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eC3Lx-0000Ll-Oi for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 12:51:41 +0000 Received: from n3.nabble.com ([162.255.23.22]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eC3Lt-0002av-EP for pgsql-bugs@postgresql.org; Tue, 07 Nov 2017 12:51:41 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id CCEE994DF535 for ; Tue, 7 Nov 2017 05:51:35 -0700 (MST) Date: Tue, 7 Nov 2017 05:51:35 -0700 (MST) From: =?UTF-8?Q?Jan_Przemys=C5=82aw_W=C3=B3jcik?= To: pgsql-bugs@postgresql.org Message-ID: <1510059095836-0.post@n3.nabble.com> In-Reply-To: References: <20171028082225.GA2157@arthur.localdomain> Subject: Re: Fwd: pg_trgm word_similarity inconsistencies or bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, my statement about the function usefulness was probably too categorical, though I had in mind the current name of the function.=20 I'm afraid that creating a function that implements quite different algorithms depending on a global parameter seems very hacky and would lead to misunderstandings. I do understand the need of backward compatibility, but I'd opt for the lesser evil. Perhaps a good idea would be to change the name to 'substring_similarity()' and introduce the new function 'word_similarity()' later, for example in the next major version release. ------ Jan Przemys=C5=82aw W=C3=B3jcik=20 -- Sent from: http://www.postgresql-archive.org/PostgreSQL-bugs-f2117394.html --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs