Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tmX1w-007PQr-Or for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2025 11:53:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tmX1v-001s6S-PY for pgsql-general@arkaria.postgresql.org; Mon, 24 Feb 2025 11:53:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tmX1v-001s6J-DK for pgsql-general@lists.postgresql.org; Mon, 24 Feb 2025 11:53:47 +0000 Received: from mail-qv1-xf33.google.com ([2607:f8b0:4864:20::f33]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tmX1s-000Wki-2P for pgsql-general@lists.postgresql.org; Mon, 24 Feb 2025 11:53:47 +0000 Received: by mail-qv1-xf33.google.com with SMTP id 6a1803df08f44-6dd15d03eacso41041206d6.0 for ; Mon, 24 Feb 2025 03:53:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20230601; t=1740398023; x=1741002823; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hfp29z3dn4B9jIbl8w+Q0bzVWVzV7ct4NmZW5f90Qow=; b=Ioqh7Ue7PPp1novYsvIuwBu+Mz+apcVavwvQc9UeQ9PQhwo+VdjXJvL9RmvwyzosbJ RMPdqU/ItOItwPhhTOA98JlAYSuvrBWUT+Xg9y+/qce8tLKqW5Pb3iqCP78hdp/SXyje Q785vfD9jVZ5ZVULJasa1F7iMP7Wc00zI0edq3lTO8rgDs28kMzFBY1U7h0xEAXkLj+X DQwkJ53kK4PendJdk/OcP4xOhr7xqNmYjbHbi3JhUA8F3IvSc9Fj6qUrbJrxuAJ4bu0A IANZi9l53ZmkGjVsoXVnDBVf1B6ebjuPk2YPd2bLasqPds932iWetV5g9IRf0iLtsZLI h+XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740398023; x=1741002823; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hfp29z3dn4B9jIbl8w+Q0bzVWVzV7ct4NmZW5f90Qow=; b=m0KXghatLQjuzURrQJXXg/g9Wrj+kkwLiKS9b+W/qXkk6rbaqEOrY5BD+7illA+VQM OjK50XBw12Lblivg5rtmTWAQimdU9/dYplNjlzpJG086xxyu/bEZi/faBxm298CBiOKB ecQRwkNCNyY64tKgstddiiCNjqkNmO7LR9TS0APRbM25pSBysr4nR13yZypRyVYeY7fj sJlAR/1qVZYubqUugC24kRaBtnBtlSPzg3wO6UoLRlXsU4lN862i34kTsoAr9DowdnAG /+abB4wOvKiJtX9ClP0nwFLRBTsE/W+2GnfsugrScbKwgL9LsblnIfz5CUdG2MiaGYU0 QQjg== X-Forwarded-Encrypted: i=1; AJvYcCVHN/mYSXeCrLVX/yOELbEMug/tDhyaONySrFe+EOJsjdzOfMxukrmfpkzndZZRuDT9V7sDr9t23zVpjKEW@lists.postgresql.org X-Gm-Message-State: AOJu0Yy68xGGHfdUWNcLMAi4kdJveshpEGCoVnymcZvANUaVffpNIqTf ySm8rqka1ZmD8ykUKwjTx7eW66JdcHrDm14H+Q1e1RjRXeogf4GdJExTNjEhwRN8mYnE6JupEDh Fsq3Zy57jqgoyljhjvuAkC1eVHOU= X-Gm-Gg: ASbGnctTKzEuNd/+LXrufLqMGy/8Z/SW6g5EBlBE8A/d5L3gZMoebu7M8vuVdu2IjP/ S6QnZ0j0X4ZXdk/qAijgLkYQCCtBWyxy171ly67IyvPtt42WyPOC3+4z56f+a63biiNpN273Kzh E7uSJEFoXK X-Google-Smtp-Source: AGHT+IHceBjfFXlNfN3/ZYY0ZEaO/qdNCPpoJbipiKAO9XtCMqoXk5nfw4MSTtrbQjBLi7KWZn/2C4aan3XZTY8VtZU= X-Received: by 2002:a05:6214:1c43:b0:6e6:646d:7550 with SMTP id 6a1803df08f44-6e6ae8b0dddmr191600546d6.19.1740398023386; Mon, 24 Feb 2025 03:53:43 -0800 (PST) MIME-Version: 1.0 References: <20250224023225.197cac12@ardentperf.com> In-Reply-To: From: Matthias Apitz Date: Mon, 24 Feb 2025 12:53:32 +0100 X-Gm-Features: AWEUYZl1Kj6Ij2iIaqCf0j34umR1gaNIn55fAZle_jkMcNQY1QVRJiQHqd_dMtU Message-ID: Subject: Re: COLLATION update in 13.1 To: Dominique Devienne Cc: Jeremy Schneider , pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="000000000000f3ac32062ee1fd93" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000f3ac32062ee1fd93 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks. I tried a lot of combinations. Based on the output of \l List of databases Name | Owner | Encoding | Collate | Ctype | ICU Locale | Locale Provider | Access privileges ------------+----------+----------+-------------+-------------+------------= +-----------------+----------------------- bar | foo | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | | libc | customers | sisis | UTF8 | de_DE.UTF-8 | de_DE.UTF-8 | | libc | ... postgres=3D# ALTER COLLATION "de_DE.UTF8" REFRESH VERSION; ERROR: collation "de_DE.UTF8" for encoding "UTF8" does not exist yours (Dominique) seems to work: postgres=3D# ALTER COLLATION "de_DE.utf8" REFRESH VERSION; NOTICE: version has not changed ALTER COLLATION If I understand the other reply from Laurenz Albe right, the correct procedure would be: pgsql -Usisis sisis sisis=3D# REINDEX (VERBOSE) DATABASE sisis; sisis=3D# ALTER COLLATION "de_DE.utf8" REFRESH VERSION; ALTER COLLATION Correct? On Mon, Feb 24, 2025 at 12:35=E2=80=AFPM Dominique Devienne wrote: > On Mon, Feb 24, 2025 at 12:33=E2=80=AFPM Matthias Apitz > wrote: > >> Thanks for your hint, Jeremy. But this does not work either: >> >> postgres=3D# SELECT collname, collversion FROM pg_collation where collna= me >> =3D 'de_DE.utf8'; >> collname | collversion >> ------------+------------- >> de_DE.utf8 | 2.38 >> (1 row) >> >> postgres=3D# ALTER COLLATION de_DE.utf8 REFRESH VERSION; >> ERROR: schema "de_de" does not exist >> >> What do I wrong? >> > > Missing quotes. ALTER COLLATION "de_DE.utf8" REFRESH VERSION; > --000000000000f3ac32062ee1fd93 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks. I tried a lot of combinations. Based on the o= utput of \l

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 List of data= bases
=C2=A0 =C2=A0 Name =C2=A0 =C2=A0| =C2=A0Owner =C2=A0 | Encoding | = =C2=A0 Collate =C2=A0 | =C2=A0 =C2=A0Ctype =C2=A0 =C2=A0| ICU Locale | Loca= le Provider | =C2=A0 Access privileges
------------+----------+---------= -+-------------+-------------+------------+-----------------+--------------= ---------
=C2=A0bar =C2=A0 =C2=A0 =C2=A0 =C2=A0| foo =C2=A0 =C2=A0 =C2= =A0| UTF8 =C2=A0 =C2=A0 | de_DE.UTF-8 | de_DE.UTF-8 | =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0| libc =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
= =C2=A0customers =C2=A0| sisis =C2=A0 =C2=A0| UTF8 =C2=A0 =C2=A0 | de_DE.UTF= -8 | de_DE.UTF-8 | =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| libc =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
...

= postgres=3D# ALTER COLLATION "de_DE.UTF8" REFRESH VERSION;
ERR= OR: =C2=A0collation "de_DE.UTF8" for encoding "UTF8" do= es not exist

yours (Dominique) seems to work:

postgres=3D# ALTER COLLATION "de_DE.utf8" RE= FRESH VERSION;
NOTICE: =C2=A0version has not changed
ALTER COLLATION<= /div>

If I understand the other reply from Laurenz Albe = right, the correct procedure would be:

pgsql -Usis= is sisis
sisis=3D# REINDEX (VERBOSE) DATABASE sisis;
sisi= s=3D# ALTER COLLATION "de_DE.utf8" REFRESH VERSION;
ALTER COLL= ATION

Correct?



On Mon, Feb 24, 2025 at 12:35=E2=80=AFPM Dominique Devienne <<= a href=3D"mailto:ddevienne@gmail.com">ddevienne@gmail.com> wrote:
<= div dir=3D"ltr">On Mon, Feb 24, 2025 at 12:33=E2=80=AFPM Matthias Apitz <= ;gurucubano@= googlemail.com> wrote:
Thanks for your = hint, Jeremy. But this does not work either:

postg= res=3D# SELECT collname, collversion FROM pg_collation where collname =3D &= #39;de_DE.utf8';
=C2=A0 collname =C2=A0| collversion
------------= +-------------
=C2=A0de_DE.utf8 | 2.38
(1 row)

postgres=3D# AL= TER COLLATION de_DE.utf8 REFRESH VERSION;
ERROR: =C2=A0schema "de_d= e" does not exist

What do I wrong?

Missing quotes.=C2=A0 ALTER COLLATION &qu= ot;de_DE.utf8" REFRESH VERSION;
--000000000000f3ac32062ee1fd93--