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.96) (envelope-from ) id 1vdpvH-005RSd-0X for pgsql-general@arkaria.postgresql.org; Thu, 08 Jan 2026 13:19:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdpvF-0027V8-32 for pgsql-general@arkaria.postgresql.org; Thu, 08 Jan 2026 13:19:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdpvF-0027V0-1y for pgsql-general@lists.postgresql.org; Thu, 08 Jan 2026 13:19:30 +0000 Received: from dverite2024.planet-service.net ([185.16.44.252] helo=mail.verite.pro) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vdpvE-004tMY-1P for pgsql-general@postgresql.org; Thu, 08 Jan 2026 13:19:29 +0000 Received: by mail.verite.pro (Postfix, from userid 1000) id 298DB2C0A29; Thu, 8 Jan 2026 14:19:25 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 From: "Daniel Verite" Subject: Re: Collation again here To: "Rihad" Cc: "pgsql-general General" In-Reply-To: <200eccb1-188e-49ee-9360-c3a7acb19c2c@gmail.com> Date: Thu, 08 Jan 2026 14:19:21 +0100 Message-Id: <8a739d96-83d1-482a-885d-3b76498c9e6e@manitou-mail.org> X-Mailer: Manitou v1.7.3 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rihad wrote: >DETAIL: The database was created using collation version 43.0, but the=20 > operating system provides version 34.0. > The OS are both FreeBSD, but the master runs 14.3, the replica runs=20 > 13.5. PostgreSQL packages are built with ICU support by default, the=20 > versions used are identical: icu-76.1 >=20 >=20 > Could it be that the OS (libc) needs to be the same version? I hoped it=20 > would be enough to use the same ICU. That would be the case if the database collation provider was ICU, that is pg_database.datlocprovider =3D 'i' Otherwise no, it's the libc version that matters, unless using the binary-sorting C or C.UTF-8 collations. 43.0 and 34.0 don't look like ICU collation version numbers, so they probably refer to FreeBSD libc (pg_database.datlocprovider =3D 'c') As a general rule, you should indeed run the same OS version for the primary and physical replicas. Before Postgres version 15 this message did not exist, so the risks of mismatch were silent but they existed just the same. Best regards, --=20 Daniel V=E9rit=E9=20 https://postgresql.verite.pro/