X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2BA1ED70A9 for ; Mon, 5 Sep 2005 13:07:34 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 34156-10 for ; Mon, 5 Sep 2005 16:07:29 +0000 (GMT) Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by svr1.postgresql.org (Postfix) with ESMTP id 941C0D6F3F for ; Mon, 5 Sep 2005 13:07:26 -0300 (ADT) Received: from bell.credativ.de (p508955D6.dip.t-dialin.net [80.137.85.214]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 333ABD7656; Mon, 5 Sep 2005 18:11:45 +0200 (CEST) From: Peter Eisentraut To: Alvaro Herrera Subject: Re: POSIX Regular Expression question Date: Mon, 5 Sep 2005 18:07:15 +0200 User-Agent: KMail/1.8.1 Cc: Aldor , pgsql-sql@postgresql.org References: <431C4EB2.80401@mediaroot.de> <200509051619.29210.peter_e@gmx.net> <20050905151331.GA19192@surnet.cl> In-Reply-To: <20050905151331.GA19192@surnet.cl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200509051807.17320.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[AWL=-0.000, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/38 X-Sequence-Number: 22585 Am Montag, 5. September 2005 17:13 schrieb Alvaro Herrera: > Note that [:alpha:] and such character classes are defined by POSIX to > be locale independent: > > alvherre=# select 'á' ~ '[a-z]'; > ?column? > ---------- > f > (1 fila) > > alvherre=# select 'á' ~ '[[:alpha:]]'; > ?column? > ---------- > t > (1 fila) I don't think this addresses the concern I intended to raise. The first query should succeed for all letters between a and z, the second should succeed for all letters. Neither is guaranteed to succeed only for all "normal" Latin letters a, b, c, ... z. -- Peter Eisentraut http://developer.postgresql.org/~petere/