Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 3170CB5DBE1 for ; Fri, 23 Sep 2011 14:37:49 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 00846-07 for ; Fri, 23 Sep 2011 17:37:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id C5979B5DBDA for ; Fri, 23 Sep 2011 14:37:42 -0300 (ADT) Received: by fxe4 with SMTP id 4so4033155fxe.19 for ; Fri, 23 Sep 2011 10:37:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:references:from:content-transfer-encoding:content-type :in-reply-to:message-id:date:cc:to:mime-version:x-mailer; bh=jM6sE3+8qu3sE/eSR09wVYC1yMT4V5z7GQKmOrTmnXA=; b=jvzr8wthsS01UUTyN2U77gYRM9Z9R6eQL0jtjjooi5UCsMDXZfaI7JWRIUtQogq7tJ sSEKfMNpF/xIWjgcJR5/Ozcaepij5KfwQATi18he3YHCQarBVgHZf+gLf7H8MEJPOTWm OzybW3LjYMdRm0M7wxZZoDEhfCqTIdKdHOXdI= Received: by 10.223.62.212 with SMTP id y20mr108760fah.111.1316799461678; Fri, 23 Sep 2011 10:37:41 -0700 (PDT) Received: from [10.72.242.19] (178.181.206.132.nat.umts.dynamic.t-mobile.pl. [178.181.206.132]) by mx.google.com with ESMTPS id w6sm11776385fah.0.2011.09.23.10.37.35 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Sep 2011 10:37:40 -0700 (PDT) Subject: Re: [v9.2] make_greater_string() does not return a string in some cases References: <20110711.155531.15100243.horiguchi.kyotaro@oss.ntt.co.jp> <20110712.161231.138791411.horiguchi.kyotaro@oss.ntt.co.jp> <20110914.111320.18404009.horiguchi.kyotaro@oss.ntt.co.jp> <6425.1316656167@sss.pgh.pa.us> <8755.1316665444@sss.pgh.pa.us> <18434.1316702188@sss.pgh.pa.us> <24673.1316782288@sss.pgh.pa.us> From: =?utf-8?Q?Marcin_Ma=C5=84k?= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii In-Reply-To: Message-Id: <624360DC-C26A-4FA6-8C6A-26D28EA79422@gmail.com> Date: Fri, 23 Sep 2011 20:35:48 +0300 Cc: Tom Lane , Kyotaro HORIGUCHI , "pgsql-hackers@postgresql.org" To: Robert Haas Mime-Version: 1.0 (iPhone Mail 8C148) X-Mailer: iPhone Mail (8C148) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201109/1236 X-Sequence-Number: 195425 One idea: col like 'foo%' could be translated to col >=3D 'foo' and col <=3D foo || 'z= zz' , where 'z' is the largest possible character. This should be good enoug= h for calculating stats. How to find such a character, i do not know.=