Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4ED95632D6D for ; Mon, 15 Mar 2010 14:14:37 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 78326-05 for ; Mon, 15 Mar 2010 17:14:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 68959634277 for ; Mon, 15 Mar 2010 14:14:23 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o2FHELwJ020345; Mon, 15 Mar 2010 13:14:21 -0400 (EDT) To: "Dan McFadyen" cc: pgsql-sql@postgresql.org Subject: Re: Odd query behavior In-reply-to: References: <622.1268411385@sss.pgh.pa.us> <18118.1268665439@sss.pgh.pa.us> Comments: In-reply-to "Dan McFadyen" message dated "Mon, 15 Mar 2010 13:01:53 -0400" Date: Mon, 15 Mar 2010 13:14:21 -0400 Message-ID: <20344.1268673261@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.458 tagged_above=-10 required=5 tests=AWL=0.141, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/77 X-Sequence-Number: 33784 "Dan McFadyen" writes: > Now, the interesting part is for all I can tell, there are no special > characters in the field. Unless the latest version of Pgadmin (1.10.1 or > 1.10.2) hides this from the UI, either that or it's some character that > renders into a similar glyph as ASCII. > Is there any way to force hex/binary in a SQL statement? Huh. Try pg_dump'ing the table and then searching the file for any bytes with high bit set. It's possible that Finnish locale sorts some of the plain-ASCII characters differently than C locale would, but I don't know of a reason for that to break anything. regards, tom lane