Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwmtg-0003RO-VS for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Dec 2021 15:05:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mwmtd-0005yD-O9 for pgsql-hackers@arkaria.postgresql.org; Mon, 13 Dec 2021 15:05:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwmtd-0005y3-F4 for pgsql-hackers@lists.postgresql.org; Mon, 13 Dec 2021 15:05:45 +0000 Received: from relay8-d.mail.gandi.net ([217.70.183.201]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mwmtZ-0008BC-J6 for pgsql-hackers@lists.postgresql.org; Mon, 13 Dec 2021 15:05:44 +0000 Received: (Authenticated sender: adsend@dunslane.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id A7DD91BF214; Mon, 13 Dec 2021 15:05:37 +0000 (UTC) Message-ID: <233e19c9-6819-ca0f-5314-f5f9285ac874@dunslane.net> Date: Mon, 13 Dec 2021 10:05:35 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: daitch_mokotoff module Content-Language: en-US To: Tomas Vondra , Dag Lem , PostgreSQL Hackers References: <0cac2d60-5b85-59c6-1ac1-77092b8688b7@enterprisedb.com> From: Andrew Dunstan In-Reply-To: <0cac2d60-5b85-59c6-1ac1-77092b8688b7@enterprisedb.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 12/13/21 09:26, Tomas Vondra wrote: > On 12/13/21 14:38, Dag Lem wrote: >> Please find attached an updated patch, with the following fixes: >> >> * Replaced remaining malloc/free with palloc/pfree. >> * Made "make check" pass. >> * Updated notes on other implementations. >> > > Thanks, looks interesting. A couple generic comments, based on a quick > code review. > > 1) Can the extension be marked as trusted, just like fuzzystrmatch? > > 2) The docs really need an explanation of what the extension is for, > not just a link to fuzzystrmatch. Also, a couple examples would be > helpful, I guess - similarly to fuzzystrmatch. The last line in the > docs is annoyingly long. It's not clear to me why we need a new module for this. Wouldn't it be better just to add the new function to fuzzystrmatch? cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com