From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Christophe Labouisse <labouiss@cybercable.fr>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] Strange behavior
Date: Mon, 10 May 1999 12:34:31 -0400 (EDT)
Message-ID: <199905101634.MAA07355@candle.pha.pa.us> (raw)
In-Reply-To: <9597.925250127@sss.pgh.pa.us>
> Christophe Labouisse <labouiss@cybercable.fr> writes:
> >> As a temporary measure you could rebuild with USE_LOCALE turned on;
> >> the parser code is set up not to generate the <= clause if that's
> >> defined. But we need a better solution.
>
> > Hmm that's strange I though I compiled already with locale
> > enabled.
>
> Hmm. According to the cvs logs, Göran Thyni applied a patch on Feb 2
> to disable the \377 thing when USE_LOCALE is defined. How old did you
> say your source was? Look in backend/parser/gram.y, routine
> makeIndexable(), to see if there is an #ifdef USE_LOCALE; also check
> gram.c to make sure it has the same text for the routine (I'm wondering
> if you might have an out-of-date gram.c...)
>
> > Anyway I'll check it again. Anyway I think that even without locale
> > this optimization can lead to incorrect result if you have a a field
> > starting with \377.
>
> I agree, the code is wrong even without funny sort ordering. We'll
> need to find another way.
OK, I agree, but I could never think of a better way.
--
Bruce Momjian | http://www.op.net/~candle
maillist@candle.pha.pa.us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: maillist@candle.pha.pa.us, tgl@sss.pgh.pa.us, labouiss@cybercable.fr
Subject: Re: [SQL] Strange behavior
In-Reply-To: <199905101634.MAA07355@candle.pha.pa.us>
References: <9597.925250127@sss.pgh.pa.us> <199905101634.MAA07355@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox