order by different on mac vs linux - Mailing list pgsql-sql

From Wes James
Subject order by different on mac vs linux
Date
Msg-id CAFjCMHse4AHdTav96ifSsKaqq1Ggj43Xc=DPBfwCzZyuYKAJFQ@mail.gmail.com
Whole thread Raw
Responses Re: order by different on mac vs linux
Re: order by different on mac vs linux
Re: order by different on mac vs linux
List pgsql-sql
I have postgresql 9.1.3 on a mac and on linux.

On the mac the results come out:

! *`-=[];',./~@#$%^&()_+{}|:"<>?\

then

\--\

On ubuntu 12.04 x64 it comes out (compiled and installed postgres from
tbz2 from postgresql.org repo):

\--\

then

! *`-=[];',./~@#$%^&()_+{}|:"<>?\


Why is there a different order on the different platforms.  I even
copied the data folder on the mac to the linux box instead of doing
pg_dump and then \i pg.sql file on Linux to move the data and the
order is still different like this.

Any idea why?  the ! line should come before the \ line, lexically.  !
is char 33 and \ is char 92.

This is done with

select * from table order by field;

on both systems and "field" is character varying on both systems.

Thanks,

Wes


pgsql-sql by date:

Previous
From: Devrim GÜNDÜZ
Date:
Subject: Re: syncing - between databases
Next
From: Tom Lane
Date:
Subject: Re: order by different on mac vs linux