Re: dropped default locale

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: dropped default locale
Дата
Msg-id d42f31908c77654da888f722708b7786cc332800.camel@cybertec.at
обсуждение исходный текст
Ответ на dropped default locale  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Ответы Re: dropped default locale  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Список pgsql-general
On Wed, 2022-12-21 at 15:24 +0100, Karsten Hilbert wrote:
> I managed to drop the "special" collations default, C, and
> POSIX with OIDs 100, 950, 951.
> 
> Is there a way to recreate them (short of restoring a backup)
> ? Naive attempts with create collation do not seem to work
> out.

I would definitely go for the backup, but here is how you can
create these three rows in PostgreSQL v15:

  INSERT INTO pg_collation
    (oid, collname, collnamespace, collowner, collprovider,
     collisdeterministic, collencoding, collcollate, collctype)
  VALUES
    (100, 'default', 11, 10, 'd', TRUE, -1, NULL,    NULL),
    (950, 'C',       11, 10, 'c', TRUE, -1, 'C',     'C'),
    (951, 'POSIX',   11, 10, 'c', TRUE, -1, 'POSIX', 'POSIX');

Yours,
Laurenz Albe



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

Предыдущее
От: Karsten Hilbert
Дата:
Сообщение: dropped default locale
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: dropped default locale