Re: [WIP] patch - Collation at database level

Поиск
Список
Период
Сортировка
От Zdenek Kotala
Тема Re: [WIP] patch - Collation at database level
Дата
Msg-id 48734E46.7080907@sun.com
обсуждение исходный текст
Ответ на Re: [WIP] patch - Collation at database level  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: [WIP] patch - Collation at database level  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Martijn van Oosterhout napsal(a):
> 
> Oh I see, you're referring to the storage of the default collation for
> a database. I was jumping ahead to the per-column collation state, when
> the collation default is attached to columns, types and domains, and
> not at the database level. So there the problem does not exist.

Yeah, but you still need one source/one collation list for database, scheme, 
table and column. And of course shared tables need also collation for their indexes.

> To be honest, I'd suggest storing the collation in pg_database as a
> string, rather than as an identifier. This sidesteps the problem
> entirly.

I don't think that string is good idea. You need to use same approach on all 
levels by my opinion.
    Zdenek


-- 
Zdenek Kotala              Sun Microsystems
Prague, Czech Republic     http://sun.com/postgresql



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [WIP] patch - Collation at database level
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [PATCHES] WIP: executor_hook for pg_stat_statements