Re: Internationalization - Mailing list pgsql-general

From Dennis Gearon
Subject Re: Internationalization
Date
Msg-id 40E38543.4050900@fireserve.net
Whole thread Raw
In response to Re: Internationalization  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom Lane wrote:

> Dennis Gearon <gearond@fireserve.net> writes:
>
>>Is there anyway for a single statement to access more than one database?
>>Could a query, regexes, etc be facing indexes in different
>>encodings/sorting collations if different databases in a cluster had
>>different encodings/collations?
>
>
> The indexes on the shared system tables (eg, pg_database) are the only
> issue here.  One possible solution is to require that no locale-aware
> datatypes ever be used in these indexes.  I think right now this is true
> because "name" doesn't use locale-aware sorting; but we'd have to be
> careful not to break the restriction in future.
>
>             regards, tom lane
>
Tom what about table names? Isn't it part of the SQL spec to be able to set table names to other langauges other than
English?

----------------------

I've researched most of the databases out there that will tell you anything about how they have internationlized them.
Bya vast  majority, I have found them using UTF16 for ALL internals, in memory or CPU. This does double most non
orientallangauge application's memory image. But, memory is cheap, and the desktop/Intel server market is just about to
goto 64 bit and use much more memory. 

Based on my research, all characters for most human langauges are able to be displayed in one - 2 byte, 16 bit char via
UTF16.I am going to do some more research on that. 

PROBABLY, most of them use UTF16 on the disk as well. Since most slow processes are IO bound, using an 8bit text
datatype,WHEN possible, and converting on the fly might be a good way to keep some speed while truly making an ANSI
spec,international database. I'm probably all wet though. 



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Speed of pg_dump -l -s (List Schema) Variations
Next
From: "Scott Marlowe"
Date:
Subject: Re: Problems restarting after database crashed (signal