Re: [WIP] patch - Collation at database level

Поиск
Список
Период
Сортировка
От Radek Strnad
Тема Re: [WIP] patch - Collation at database level
Дата
Msg-id de5165440807021221s26b1feaam461319aa1fe94ed2@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [WIP] patch - Collation at database level  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
My patch should be "sort of" wrapper that will implement guts for further development (collation at column level) like catalogs, creating collations etc. When creating collation user will be able to choose which function to use (by statement STRCOLFN - not in SQL standard). In the first stage I'll implement function that will use system locales. Adding ICU or any other library won't be that big deal.

Radek Strnad


On Wed, Jul 2, 2008 at 8:22 PM, Gregory Stark <stark@enterprisedb.com> wrote:
"Tom Lane" <tgl@sss.pgh.pa.us> writes:

> Alvaro Herrera <alvherre@commandprompt.com> writes:
>> Why does a collation have a schema?
>
> Because the SQL spec says so.  Also, if we don't put them in schemas,
> we have no nice way to distinguish built-in and user-defined collations,
> which creates a problem for pg_dump.

Out of curiosity, what is a "user-defined collation"? Are there SQL statements
to go around declaring what order code points should be sorted in? That seems
like it would be... quite tedious!

--
 Gregory Stark
 EnterpriseDB          http://www.enterprisedb.com
 Ask me about EnterpriseDB's Slony Replication support!

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Teodor Sigaev
Дата:
Сообщение: Re: PATCH: CITEXT 2.0
Следующее
От: "Ken Camann"
Дата:
Сообщение: Re: A Windows x64 port of PostgreSQL