Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOice-00055N-9W for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Dec 2017 11:21:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eOicc-0005Yh-Go for pgsql-bugs@arkaria.postgresql.org; Tue, 12 Dec 2017 11:21:14 +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 1eOicc-0005YT-7Z; Tue, 12 Dec 2017 11:21: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.89) (envelope-from ) id 1eOicY-000836-C7; Tue, 12 Dec 2017 11:21:12 +0000 Received: from xor.sai.msu.ru (unknown [93.174.131.141]) (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 B48EAB191A0; Tue, 12 Dec 2017 14:21:06 +0300 (MSK) Subject: Re: Fwd: [BUGS] pg_trgm word_similarity inconsistencies or bug To: Alexander Korotkov , Robert Haas Cc: =?UTF-8?Q?Jan_Przemys=c5=82aw_W=c3=b3jcik?= , Postgres-Bugs , "pgsql-hackers@postgresql.org" References: <20171028082225.GA2157@arthur.localdomain> <1510059095836-0.post@n3.nabble.com> From: Teodor Sigaev Message-ID: <71aa21f9-8b3a-8307-3572-5c5fe3c8a05c@sigaev.ru> Date: Tue, 12 Dec 2017 14:21:06 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > 0002-pg-trgm-strict_word-similarity.patch – implementation of > strict_word_similarity() with comments, docs and tests. The patch looks commmitable, but sometime I get *** ...pgsql/contrib/pg_trgm/expected/pg_strict_word_trgm.out 2017-12-12 14:16:55.190989000 +0300 --- .../pgsql/contrib/pg_trgm/results/pg_strict_word_trgm.out 2017-12-12 14:17:27.645639000 +0300 *************** *** 153,160 **** ----------+---------------------------------- 0 | Kabankala 0.25 | Kabankalan City Public Plaza - 0.416667 | Kabakala 0.416667 | Abankala 0.538462 | Kabikala 0.625 | Ntombankala School 0.642857 | Nehalla Bankalah Reserved Forest --- 153,160 ---- ----------+---------------------------------- 0 | Kabankala 0.25 | Kabankalan City Public Plaza 0.416667 | Abankala + 0.416667 | Kabakala 0.538462 | Kabikala 0.625 | Ntombankala School 0.642857 | Nehalla Bankalah Reserved Forest ====================================================================== Seems, some stability order should be added to tests -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/