Re: Encoding names - Mailing list pgsql-hackers

From Karel Zak
Subject Re: Encoding names
Date
Msg-id Pine.LNX.3.96.1010221113843.22620E-100000@ara.zf.jcu.cz
Whole thread Raw
In response to Re: Encoding names  (Tatsuo Ishii <t-ishii@sra.co.jp>)
List pgsql-hackers
On Wed, 21 Feb 2001, Tatsuo Ishii wrote:

> Please understand there is no standard for charset/encoding names in
> SQL92/99 itself. The SQL standard just says "you can import any
> charset/encoding from anywhere if you can". Please correct me if I am
> wrong.

In SQL standards not, but all probably known for example ISO names or 
some form for this.

> However, I do not object to change encoding names if there are enough
> agrees (and as long as the backward compatibilities are kept). 
You not must change current names, you can add to pg_conv_tbl[] new lines
with names synonym for already existing encoding.
An example:
{LATIN1, "LATIN1",    0, latin12mic, mic2latin1, 0, 0}, {LATIN1, "ISO-8859-1",    0, latin12mic, mic2latin1, 0, 0}, 
And if you order this table by alphabet and in pg_char_to_encoding()
you use Knuth's binary search intead current seq. scannig by for() every
thing will faster and more nice. It's easy.
What? :-)
    Karel




pgsql-hackers by date:

Previous
From: Tatsuo Ishii
Date:
Subject: Re: Encoding names
Next
From: Robert Schrem
Date:
Subject: Re: Re: floating point representation