strcoll_l an new approach for locale per column
strcoll_l an new approach for locale per column
От:
Mahmoud Taghizadeh <m_taghi@yahoo.com>
Дата:
in this list there is some discussion about adding support locale per column. as far as I know the final result was that: because postgresql uses glibc locale functions, and because glibc only handle one locale, postgresql also suppor only one locale at the same time. one solution was that use some help functions (such as nls_sort, or strxfrm...) and use setlocale to support other locale. the main problem with these solutions was that 1. it is not standart 2. the overhead of setlocale is too high as far as I investigate the glibc code, I found some extention function such as strcol_l and strxfrm_l that let you to pass locale to them. so you dont have to change locale repeatedly. I want to know the groups idea? Best Regards __________________________________ Do you Yahoo!? Send holiday email and support a worthy cause. Do good. http://celebrity.mail.yahoo.com
Re: strcoll_l an new approach for locale per column
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Mahmoud Taghizadeh writes: > as far as I investigate the glibc code, I found some > extention function such as strcol_l and strxfrm_l that > let you to pass locale to them. so you dont have to > change locale repeatedly. Sorry, but depending on glibc-only functionality is a non-starter. We run on many platforms that use other libc implementations. Anything not standardized by the Single Unix Spec isn't even worth suggesting... http://www.opengroup.org/onlinepubs/007908799/ regards, tom lane