encoding names - Mailing list pgsql-patches

From Karel Zak
Subject encoding names
Date
Msg-id 20010817155018.E3898@zf.jcu.cz
Whole thread Raw
Responses Re: encoding names  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-patches
 Hi,

 attached is patch with:

- new encoding names stuff with better performance (binary search
  intead for() and prevent some needless searching)

- possible is use synonyms for encoding (an example ISO-8859-1,
  Latin1, l1)

- implemented is Peter's idea about "encoding names clearing"
  (other chars than [A-Za-z0-9] are irrelevan -- 'ISO-8859-1' is
  same as 'iso8859_1' or iso-8-8-5-9-1 :-)

- share routines for this between FE and BE (never more define
  encoding names separate in FE and BE)

- add prefix PG_ to encoding identificator macros, something like 'ALT'
  is pretty dirty in source code, rather use PG_ALT.

 (Note: patch add new file mb/encname.c and remove mb/common.c)

                Karel

--
 Karel Zak  <zakkr@zf.jcu.cz>
 http://home.zf.jcu.cz/~zakkr/

 C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz

Attachment

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets
Next
From: Bruce Momjian
Date:
Subject: Re: JDBC Array Support, Take III