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 9A975D8D6F for ; Wed, 14 Sep 2005 11:39:51 -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 80709-07 for ; Wed, 14 Sep 2005 14:39:44 +0000 (GMT) Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by svr1.postgresql.org (Postfix) with ESMTP id 102DAD7152 for ; Wed, 14 Sep 2005 11:39:45 -0300 (ADT) Received: from bell.credativ.de (p50897AAB.dip.t-dialin.net [80.137.122.171]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id 5A0C7D78A2; Wed, 14 Sep 2005 16:39:49 +0200 (CEST) From: Peter Eisentraut To: Joost Kraaijeveld Subject: Re: What should this query match? Date: Wed, 14 Sep 2005 16:39:41 +0200 User-Agent: KMail/1.8.1 Cc: "Pgsql-sql@postgresql.org" References: <1126691657.3675.5.camel@Panoramix> <200509141248.24909.peter_e@gmx.net> <1126696162.3675.21.camel@Panoramix> In-Reply-To: <1126696162.3675.21.camel@Panoramix> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509141639.41770.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 required=5 tests=[FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200509/151 X-Sequence-Number: 22698 Am Mittwoch, 14. September 2005 13:09 schrieb Joost Kraaijeveld: > Could you give me an example? I understand that the following query > returns all matches but I want everything smalle than the match If you need that then you will need to use two separate conditions, one for less-than and one for LIKE. -- Peter Eisentraut http://developer.postgresql.org/~petere/