Re: collations in shared catalogs?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: collations in shared catalogs?
Дата
Msg-id 20150225211945.GC24199@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: collations in shared catalogs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: collations in shared catalogs?  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On 2015-02-25 15:59:55 -0500, Tom Lane wrote:
> Andres Freund <andres@2ndquadrant.com> writes:
> > On 2015-02-25 12:08:32 -0500, Tom Lane wrote:
> >> The most obvious fix is to change "provider" to a NAME column.
> 
> > Yea. I'm not sure why that wasn't done initially. I can't really see the
> > length be an issue. How about we add an error check enforcing ascii,
> > that'll work in the back branches?
> 
> Nope, that won't help much at all.  C vs en_US for instance is different
> sort orders even with all-ASCII data.

Ick, yes. The restriction to a charset that's encodable in all server
encodings should be there additionally, but it's not sufficient :(

> Basically you're screwed if you've got different collations in different
> databases and you put anything into pg_shseclabel ...

Hrmpf.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: collations in shared catalogs?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: INSERT ... ON CONFLICT UPDATE and logical decoding