From: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
---|---|
To: | pgsql-patches <pgsql-patches(at)postgreSQL(dot)org> |
Subject: | encoding names |
Date: | 2001-08-17 13:50:18 |
Message-ID: | 20010817155018.E3898@zf.jcu.cz |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers 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(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/
C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
Attachment | Content-Type | Size |
---|---|---|
mb-08172001.patch.gz | application/x-gzip | 9.7 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Joseph Castille | 2001-08-17 13:58:38 | How would I make a table of autonumbers/sequences? |
Previous Message | He Weiping | 2001-08-17 03:33:12 | plpgsql's variable name can't be the same with table column? |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2001-08-17 13:59:31 | Re: [PATCHES] Re: JDBC pg_description update needed for CVS tip |
Previous Message | Bruce Momjian | 2001-08-17 03:35:40 | Re: Patch: use SCM_CREDS authentication over PF_LOCAL sockets |