Re: Add standard collation UNICODE

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Add standard collation UNICODE
Дата
Msg-id 86c5b4c4-0ccf-0996-8fb8-24d348eabe13@enterprisedb.com
обсуждение исходный текст
Ответ на Re: Add standard collation UNICODE  ("Daniel Verite" <daniel@manitou-mail.org>)
Ответы Re: Add standard collation UNICODE  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
Список pgsql-hackers
On 27.04.23 13:44, Daniel Verite wrote:
> This collation has an empty pg_collation.collversion column, instead
> of being set to the same value as "und-x-icu" to track its version.

> The original patch implements this as an INSERT in which it would be easy to
> fix I guess, but in current HEAD it comes as an entry in
> include/catalog/pg_collation.dat:
> 
> { oid => '963',
>    descr => 'sorts using the Unicode Collation Algorithm with default
> settings',
>    collname => 'unicode', collprovider => 'i', collencoding => '-1',
>    colliculocale => 'und' },
> 
> Should it be converted back into an INSERT or better left
> in this file and collversion being updated afterwards?

How about we do it with an UPDATE command.  We already do this for 
pg_database in a similar way.  See attached patch.

Вложения

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

Предыдущее
От: Melih Mutlu
Дата:
Сообщение: Re: [PATCH] Reuse Workers and Replication Slots during Logical Replication
Следующее
От: Melanie Plageman
Дата:
Сообщение: Re: Memory leak from ExecutorState context?