Re: Regression in 8.3? - Mailing list pgsql-general

From Thomas Pundt
Subject Re: Regression in 8.3?
Date
Msg-id 200711121318.26542.mlists@rp-online.de
Whole thread Raw
In response to Re: Regression in 8.3?  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Responses Re: Regression in 8.3?  (Patric Bechtel <patric.bechtel@gmail.com>)
List pgsql-general
Hi,

On Montag, 12. November 2007, Karsten Hilbert wrote:
| On Mon, Nov 12, 2007 at 12:46:58AM +0100, Patric Bechtel wrote:
| > select * from bla where a like '8%'
|
| Patrick, I'm not sure what you expect to come back:
|
| 8 ? 0.08 ?
|
| 8% of each of bla.a's values ?
|
| do 7% or 9% count, too ? ("a like '8%'" seems to say "well,
| about 8% of a, or close, anyways").
|
| IOW, it is not entirely clear and thus the server forces us
| to make a choice and not second-guess our intentions.

The %-sign in conjunction with a "like" operator in a string doesn't
leave much room for interpretation IMO, regardless if the "a" column
is of type "bigint" or not.

Ciao,
Thomas

--
Thomas Pundt <thomas.pundt@rp-online.de> ---- http://rp-online.de/ ----

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Regression in 8.3?
Next
From: John DeSoi
Date:
Subject: Re: Verison 8.3 PL/pgSQL debugger Question