Re: COLLATION update in 13.1

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: COLLATION update in 13.1
Дата
Msg-id f39b5db0281e0d026579ca9ed147905d845ee9d5.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: COLLATION update in 13.1  (Matthias Apitz <guru@unixarea.de>)
Список pgsql-general
On Fri, 2025-03-28 at 07:37 +0100, Matthias Apitz wrote:
> Anyway, does it make sense to ALTER COLLATION in these databases as well?
> >
> > I would say so, yes.  At least on the template you are using for new databases.
>
> $ psql -Upostgres template0
> Passwort für Benutzer postgres:
> psql: FATAL:  database "template0" is not currently accepting connections
> $
>
> With 'template1' and 'postgres' it works fine.

You'd have to temporarily allow connections and reset it once you are done.

  ALTER DATABASE template0 ALLOW_CONNECTIONS TRUE;
  \c template0
  ALTER COLLATION ... REFRESH VERSION;
  ALTER DATABASE template0 ALLOW_CONNECTIONS FALSE;
  \q

Yours,
Laurenz Albe



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