pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christoph Haller <ch@rodos.fzk.de>
To: pgsql-sql@postgresql.org
Subject: case sensitive/insensitive confusion
Date: Tue, 01 Feb 2005 10:50:06 +0100
Message-ID: <41FF50CE.76CEB361@rodos.fzk.de> (raw)

I am seeing different ORDER BY results 
on a character column on different machines. 
I have (1)
ResyDBE=# select version();
                                version
------------------------------------------------------------------------
 PostgreSQL 7.4.5 on hppa-hp-hpux10.20, compiled by GCC gcc (GCC) 3.3.1

ResyDBE=# \l ResyDBE
       List of databases
   Name    | Owner | Encoding
-----------+-------+-----------
 ResyDBE   | rodos | SQL_ASCII

ResyDBE=# select parameter_name from parameter_define where
parameter_name ilike 'c%' order by 1 limit 8;
 parameter_name
----------------
 CAENAM
 CAENAM
 CAENAM
 CBERRY
 CBERRY
 CCCTOG
 CCCTOG
 CCCTOG

and (2)
ResyDBE=# select version();
                                      
version                                       
-------------------------------------------------------------------------------------
 PostgreSQL 7.4.5 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.1
(SuSE Linux)

ResyDBE=# \l
       List of databases
   Name    | Owner | Encoding  
-----------+-------+-----------
 ResyDBE   | rodos | SQL_ASCII

ResyDBE=# select parameter_name from parameter_define where
parameter_name ilike 'c%' order by 1 limit 8;
 parameter_name 
----------------
 c12a        
 c12b        
 c12c        
 c1a         
 CAENAM      
 CAENAM      
 CAENAM      
 CAENAM      

It seems to me under hpux the sort is done case sensitive, 
as would one expect on SQL_ASCII encoding, whereas 
under linux a case insensitive sort is done. 
I'd like to see the hpux behaviour under linux too. 
Has anybody seen something like this? 
TIA

Regards, Christoph



view thread (5+ messages)  latest in thread

Message-ID: <41FF50CE.76CEB361@rodos.fzk.de>
Permalink:  ../41FF50CE.76CEB361@rodos.fzk.de/
Also on:    postgresql.org/message-id/41FF50CE.76CEB361@rodos.fzk.de

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ch@rodos.fzk.de
  Subject: Re: case sensitive/insensitive confusion
  In-Reply-To: <41FF50CE.76CEB361@rodos.fzk.de>

* 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