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 1vdpRy-005KKw-0k for pgsql-general@arkaria.postgresql.org; Thu, 08 Jan 2026 12:49:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vdpRx-001xJQ-0B for pgsql-general@arkaria.postgresql.org; Thu, 08 Jan 2026 12:49:13 +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 1vdpRw-001xJG-2D for pgsql-general@lists.postgresql.org; Thu, 08 Jan 2026 12:49:13 +0000 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vdpRv-004t1e-2j for pgsql-general@postgresql.org; Thu, 08 Jan 2026 12:49:12 +0000 Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-bbf2c3eccc9so795039a12.0 for ; Thu, 08 Jan 2026 04:49:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767876550; x=1768481350; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=6duN1JrWEmFA5KkIvTnqjMMhlKBa7e0BtfPDO9zrfPE=; b=GNm9FJnIvLBypjBAsdNNDh4DDO2SIFeU9gSGVer40oUSisI9YtBHArUthRY8GkWBiO 8SDTrB9FBUUcKna3CSZShYhMJ5+wjEqLbX3w4ueG8gB4uR6Flp+Ho4mT4Ib3ZZLZu8qM UpPHE51TL46NqV7qOZvzCfNrYQfmQ/NL6Ri557evyIhU+p6t5X3h5kYipdOE4Zpp2BO2 0/KBZsyGLthbJKKW0cTodH3Knni+aHINslWh99tLgsuE7epZlmPE8LJL6QZHovNCflfz 838G69z8MOBHvAZGap7dtKykequxnfyCvzbrZ6RYD+/TWEzCiQodMPshm84ZfV8uW3nP IVWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767876550; x=1768481350; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=6duN1JrWEmFA5KkIvTnqjMMhlKBa7e0BtfPDO9zrfPE=; b=PfPW5qGJeUEpYe0U5/gKkDBQCnwfFPOWD5WuCzGzDvcLgQph7inROQBPiSy5tu0LEV STTsc2MF7cldAJJ/0+lyvCElB7rh1AZ9dmS4nae/TfZ1lnGNHHxIf7uisuvEVl/lRlhu rs/2r1YVsg1oWwOW21CihBIr90eKVIzJuZP1Rf/0KFYgQaYe9PMx0nPfe0+Dyzu2RUFr GxsscH9aNlZXYK6IMR+ZKzdogup9UGRelbDbtsy23yPy6LyBBJQdBpxo2JtJ9BOzhtrH oMTTNQaMuEBP9ddfFi7OLnVYg160d22bgT9vtcFWC7eiW+9ZsWIxMVFIb+7ECI8uhU72 SIMg== X-Gm-Message-State: AOJu0YzzAVhu9kYIS6qRr1oeBnrq1jt3t4JIXb9BB1sLFXz83gCXiiHy BQxZwdoTp+cIDMe6cDLQb8j74HPHeLKWv1p0U1uAon4N2bb4ke+HvNnZwUMf5mFXU72BoleMBOI H7VbEQR3nE4TTt7iwDFczG24hKlGSCuw= X-Gm-Gg: AY/fxX5hDpdBOUoyddyCuJlOr0XVDDO85vgq3PSY4v1sBt5ptXHRPmlv31FkbbuL5qg xpyYTCDykdlef311EBQWG8F7iCMBfxySxEYewL64bdr6NUtjzhalomyLfwHt21K4zv7Ob1FykLF uNH119/rjZg07wR6KqRVWyeDH09jUu8yBp5OwxlBXaChMFM6fkZVWX38o9kdWCjNOFkC7w4ODdE Wt9dG8TThfzNyF0fkAvOGNpxWdGLxNPzT4In3jhy2+R8UUEh2u/cOi7aO7tME9zPbPBfkek+mKW tksHyqIi X-Google-Smtp-Source: AGHT+IGoyFWJgm9SAbkQ4Lzihwy99zcJDh/Pm1mo5WrjN/f972zheUTaJC1+IQR3DwPSfJ4F6R4QfOyvevOy7aiJmXg= X-Received: by 2002:a17:902:ea01:b0:298:45e5:54a4 with SMTP id d9443c01a7336-2a3edb0d9f7mr57775875ad.1.1767876550279; Thu, 08 Jan 2026 04:49:10 -0800 (PST) MIME-Version: 1.0 References: <200eccb1-188e-49ee-9360-c3a7acb19c2c@gmail.com> In-Reply-To: <200eccb1-188e-49ee-9360-c3a7acb19c2c@gmail.com> From: Dominique Devienne Date: Thu, 8 Jan 2026 13:48:58 +0100 X-Gm-Features: AQt7F2p2i6buRBZinGRa7O4EyE2Q2OcsNQIwm5b21mEPX539QNoo2jHAOygvIq4 Message-ID: Subject: Re: Collation again here To: Rihad Cc: pgsql-general General Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Jan 8, 2026 at 1:39=E2=80=AFPM Rihad wrote: > Hi, guys. Just pg_upgraded our PG from 13.x to 18.1, rebuilt all indexes = concurrently and issued ALTER DATABASE foo REFRESH COLLATION VERSION > Everything's fine on the master server, no warnings etc. Then I set up a = replica using pg_basebackup, and there when trying to access the DB using p= sql I get: > > WARNING: database "foo" has a collation version mismatch > DETAIL: The database was created using collation version 43.0, but the o= perating system provides version 34.0. > HINT: Rebuild all objects in this database that use the default collatio= n and run ALTER DATABASE foo REFRESH COLLATION VERSION, or build PostgreSQL= with the right library version. > The OS are both FreeBSD, but the master runs 14.3, the replica runs 13.5.= PostgreSQL packages are built with ICU support by default, the versions us= ed are identical: icu-76.1 > Could it be that the OS (libc) needs to be the same version? I hoped it w= ould be enough to use the same ICU. Depends what Provider you used in those DBs: https://www.postgresql.org/docs/current/locale.html#LOCALE-PROVIDERS Having the same ICU is good, but do your DBs use that provider? If not, and you're using the libc one, then yes, the libc version matters. Myself I use the new builtin provider to avoid OS portability issues. --DD