Re: [HACKERS] ordering RH6.1

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frans Van Elsacker <fve(at)atbib(dot)be>
Cc: pgsql-hackers(at)postgreSQL(dot)org, lamar(dot)owen(at)wgcr(dot)org
Subject: Re: [HACKERS] ordering RH6.1
Date: 1999-12-14 23:28:57
Message-ID: 16598.945214137@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Frans Van Elsacker <fve(at)atbib(dot)be> writes:
> When i do the following
> CREATE TABLE BLANK (column1 varchar(5));
> INSERT INTO BLANK (column1) VALUES (' 1');
> INSERT INTO BLANK (column1) VALUES (' 11');
> INSERT INTO BLANK (column1) VALUES (' 100');
> INSERT INTO BLANK (column1) VALUES (' 2');
> then:
> SELECT * FROM BLANK order by column1;

> I received
> 1
> 100
> 11
> 2 --> mark also a not aligned output.

> and I expected
> 1
> 2
> 11
> 100

> Anybody has an idea??

Bizarre. I see the expected results under both 6.5.3 and current
development sources:

play=> SELECT * FROM BLANK order by column1;
column1
-------
1
2
11
100
(4 rows)

I wonder if this could be a LOCALE or MULTIBYTE issue. Do you have
either feature enabled in your copy, and if so what locale/encoding
do you use? (I'm running plain vanilla no-USE_LOCALE, no-MULTIBYTE
code, so that might be why I don't see anything funny...)

regards, tom lane

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 1999-12-14 23:44:15 Re: [HACKERS] Re: [PATCHES] createdb/dropdb fixes
Previous Message Matthew Hagerty 1999-12-14 23:11:50 Backend core dump, different server!