Re: collations in shared catalogs?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: collations in shared catalogs?
Дата
Msg-id 20150519011415.GF9584@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: collations in shared catalogs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: collations in shared catalogs?  (Stephen Frost <sfrost@snowman.net>)
Re: collations in shared catalogs?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2015-05-18 19:59:29 -0400, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > Hm, just forcing a collation and restricting the input to ascii should
> > work, right?
> 
> I think that's fragile as can be.

Hm. I think actually just forcing a collation would bring this on-par
with name, right? We don't have any guarantees about the contents of
e.g. pg_database.datname being meaningful in another database with a
different encoding. In fact even the current database may have a name
that's in a wrong encoding.

I'm right now toying with the idea of defining 'varname' as a text
equivalent that always has a C type collation, and no length
limitation. That'd generally imo be a good thing to have. A bunch of
places really don't need the fixed width type and using a variable
length type will save space. It'll also be a miniscule start twoards
allowing longer identifiers...

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: collations in shared catalogs?
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: collations in shared catalogs?