Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wwir4-0001e9-3a for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2014 02:10:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wwir3-0008Rd-J1 for pgsql-hackers@arkaria.postgresql.org; Tue, 17 Jun 2014 02:10:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wwir1-0008RS-2H for pgsql-hackers@postgresql.org; Tue, 17 Jun 2014 02:10:31 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wwiqw-00059m-IM for pgsql-hackers@postgresql.org; Tue, 17 Jun 2014 02:10:29 +0000 Received: from nara.local (p1021-ipngn4101marunouchi.tokyo.ocn.ne.jp [153.129.158.21]) by mrelayeu.kundenserver.de (node=mreue001) with ESMTP (Nemesis) id 0MN9eS-1Wq9Ge2pM8-006ciu; Tue, 17 Jun 2014 04:10:00 +0200 Message-ID: <539FA371.4070902@2ndquadrant.com> Date: Tue, 17 Jun 2014 11:09:53 +0900 From: Ian Barwick User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Tom Lane , Michael Paquier CC: Peter Geoghegan , Josh Berkus , Andres Freund , Greg Stark , Jim Nasby , PostgreSQL-development , Robert Haas , Albe Laurenz Subject: Re: Doing better at HINTing an appropriate column within errorMissingColumn() References: <533B31C9.1080403@nasby.net> <20140402201602.GV3750@awork2.anarazel.de> <539F7816.1070809@agliodbs.com> <539F8C26.3040500@2ndquadrant.com> <27925.1402966428@sss.pgh.pa.us> In-Reply-To: <27925.1402966428@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V02:K0:3wOBzJp+mkaRwUyeyNWqHoxmfQy5UfAS3x65tosvCBM k4aara32g2RfxbpKZaBPSC9PKj4inYKhtob0oR8SEDSbZRGxev /UlYp2ikfUaOeAlWL8hzKHWZK/yCLknRpneS+xbcvTOO/UDOXU JKYtUtvZMEd0biJNOMS/ojXfDoXyrQUGFQ9Mb/6fvD6dOFWDK0 YnNbFk+FHVh4iNPTPvk/6QznbZhiRvGYbZawDOEu7+Ydn0Ny57 0dESq3g/Y9aVWOezjsXBzWLkTTzHHkagtuIXOFOtxZjKCVOoKs XsfnxQRLXVIxrDz0j3/c5NrRkWCoqKK2+FuvNuv4Q8Iop22k+z C+aSH7kY0fYHc0oMIRBl5BRM+2TawpUCw/Pb506jI X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 14/06/17 9:53, Tom Lane wrote: > Michael Paquier writes: >> On Tue, Jun 17, 2014 at 9:30 AM, Ian Barwick wrote: >>> From what I've seen in the wild in Japan, Roman/ASCII characters are >>> widely used for object/attribute names, as generally it's much less >>> hassle than switching between input methods, dealing with different >>> encodings etc. The only place where I've seen Japanese characters widely >>> used is in tutorials, examples etc. However that's only my personal >>> observation for one particular non-Roman language. > >> And I agree to this remark, that's a PITA to manage database object >> names with Japanese characters directly. I have ever seen some >> applications using such ways to define objects though in the past, not >> *that* many I concur.. > > What exactly is the rationale for thinking that Levenshtein distance is > useless in non-Roman alphabets? AFAIK it just counts insertions and > deletions of characters, which seems like a concept rather independent > of what those characters are. With Japanese (which doesn't have an alphabet, but two syllabaries and a bunch of logographic characters), Levenshtein distance is pretty useless for examining similarities with words which can be written in either syllabary (Michael's "ramen" example earlier in the thread); and when catching "typos" caused by erroneous conversion from phonetic input to characters - e.g. intending to input "成長" (seichou, growth) but accidentally selecting "清聴" (seichou, courteous attention). Howver in this particular use case, as long as it doesn't produce false positives (I haven't looked at the patch) I don't think it would cause any problems (of the kind which would require actively excluding certain languages/character sets), it just wouldn't be quite as useful. Regards Ian Barwick -- Ian Barwick http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers