Re: [SQL] Strange behavior

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Christophe Labouisse <labouiss(at)cybercable(dot)fr>, pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Strange behavior
Date: 1999-05-10 16:34:31
Message-ID: 199905101634.MAA07355@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

> Christophe Labouisse <labouiss(at)cybercable(dot)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, Gran 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-05-10 16:58:07 Re: [SQL] Slow Inserts Leads To Unable To Dump
Previous Message Bruce Momjian 1999-05-10 16:33:00 Re: [SQL] Strange behavior