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 1tYoFc-00FSsl-4U for pgsql-general@arkaria.postgresql.org; Fri, 17 Jan 2025 15:27:12 +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 1tYoFa-000LPw-35 for pgsql-general@arkaria.postgresql.org; Fri, 17 Jan 2025 15:27:10 +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 1tYoFZ-000LPm-Mn for pgsql-general@lists.postgresql.org; Fri, 17 Jan 2025 15:27:10 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tYoFW-0002Wf-2g for pgsql-general@postgresql.org; Fri, 17 Jan 2025 15:27:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 50HFR4mF2246964; Fri, 17 Jan 2025 10:27:04 -0500 From: Tom Lane To: Kamen Kalchev cc: pgsql-general@postgresql.org, abubakarm94@gmail.com Subject: Re: glibc 2.35-2.39 upgrade requirements In-reply-to: References: Comments: In-reply-to Kamen Kalchev message dated "Thu, 16 Jan 2025 18:44:18 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2246962.1737127624.1@sss.pgh.pa.us> Date: Fri, 17 Jan 2025 10:27:04 -0500 Message-ID: <2246963.1737127624@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Kamen Kalchev writes: > Hi everyone, we're planning to upgrade the OS running Postgres from ubuntu > jammy to ubuntu noble. As part of the OS change, the glibc version will be > changed from glibc 2.35 to glibc 2.39.. > Can someone confirm if changing the glibc between those versions will > require a full reindex of the Postgres cluster? Maybe, maybe not. According to [1], the last glibc collation change that the PG community really noticed was in glibc 2.28. So maybe there weren't any significant changes between 2.35 and 2.39. The conservative path would certainly be to reindex all textual columns (though you can skip any that have collation "C"). If you feel a need to try to avoid that, you could dump some of your textual columns into files and sort those using sort(1) on both old and new systems. (Be sure that the LANG/LC_xxx environment matches what you use for the database.) If the results are different then you definitely need to reindex; if they are the same then maybe you're okay. Pay particular attention to columns containing punctuation or non-ASCII characters, as those are the areas most likely to see changes. regards, tom lane [1] https://wiki.postgresql.org/wiki/Locale_data_changes