Skip site navigation (1) Skip section navigation (2)

Character collating order

From: Allan Engelhardt <allane(at)cybaea(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Character collating order
Date: 2001-07-03 18:54:30
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I'm having problems with the regression tests.  In particular, the CHAR test fails because of an unexpected character collating sequence:

test=> select 'a' < 'A' AS "Lowercase is low", 'a' > 'A' AS "Uppercase is low";
 Lowercase is low | Uppercase is low
 t                | f
(1 row)

The test scripts seems to expect that 'A' < 'a', which is not a completely unreasonable assumption :-)

I'm using the SQL_ASCII encoding, and un-setting the LANG environment variable (which is the only locale variable set for the account; it defaults to en_US) for postgres when starting postmaster does not fix it.

Any suggestions on what I could try?


bash-2.04$ rpm -qi postgresql
Name        : postgresql                   Relocations: (not relocateable)
Version     : 7.1.2                             Vendor: (none)
Release     : 4PGDG                         Build Date: Wed 13 Jun 2001 10:18:46 PM BST
Install date: Fri 29 Jun 2001 08:43:51 PM BST      Build Host:
Group       : Applications/Databases        Source RPM: postgresql-7.1.2-4PGDG.src.rpm
Size        : 4426307                          License: BSD
URL         :
Summary     : PostgreSQL client programs and libraries.
bash-2.04$ uname -a
Linux XXXX 2.4.2-2 #17 SMP Tue Jul 3 14:48:45 BST 2001 i686 unknown


pgsql-novice by date

Next:From: Allan EngelhardtDate: 2001-07-03 19:26:33
Subject: Too much money...: more i18n blues
Previous:From: Mark G. FranzDate: 2001-07-03 18:09:55
Subject: Problem with WHERE statement

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group