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 1srLa0-000mlu-PK for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2024 18:08:37 +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 1srLZy-005eM1-2W for pgsql-general@arkaria.postgresql.org; Thu, 19 Sep 2024 18:08:35 +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 1srLZx-005eLm-MT for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2024 18:08:35 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1srLZr-0003YI-Fz for pgsql-general@lists.postgresql.org; Thu, 19 Sep 2024 18:08:34 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42cb7a2e4d6so9839395e9.0 for ; Thu, 19 Sep 2024 11:08:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726769308; x=1727374108; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ljU9uUTA+8qf7uaGp5aKC04LvMfl57bFr9OmjGiaOAM=; b=QgZg/mgyjGrtkRa+2xDlFaNlOZ+Z2O3byCoe+zYimLozoCCFUSGGCFN9kfdhhbQc1d WS97GqL1qVHFU7Vs/9V3MTviDdjrIo9KbRsbWPcBtdyOrHC/HD6QRUM51tZmM35cwbkG NAxILvz0/pkP3d89C7ZPPRGg0h/dw1nGa+6JJEVAckvkdl0Y8L10LOOUZGJSb263XUmt Z8QToPJonD9WhHGtKjFshWjEY2gw7ZhbvwzZgUwAiaMmScWO8+SICfCfPg3S94mzdWKZ J6BpD4+tjmErCSFCk69yJKcBOD0wMoHiQlsNjhQiVD9sEJ73M7rgS4RzxrYxIByQVh5L OXPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726769308; x=1727374108; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ljU9uUTA+8qf7uaGp5aKC04LvMfl57bFr9OmjGiaOAM=; b=QOszHPrW1wChlYII09sRx0CkLlomomUEMiRoKEuUBpUI5qwa7+jO2wdIyRDr/ksHO9 RQygPPdfRZN/P+P+wf40pG7L6TtwZZVcw6zgco0MKs8yrnudA8qPJIDsOKkYL6FCh76C RtJw7DbydnV9R9pXuJY5oKpuUeb+xtGirx1UgDyd857GLSSZ0XJJho3dBW8UZsgREbxk iFUl9lJiECbP5h8I5B3mRpVVN8Kz8//OF9y+2qW2YE3ZNSqQvRylZvgd52XYvgdA4Zor pfewuk5hAoDNxaZ5Jq8MIsQ9WN+MdxVP5aUUvQsJWqaKGC0ag+AGnE+sq/5adPrGLP4G priA== X-Forwarded-Encrypted: i=1; AJvYcCWuDCUnsVYArzTj5ON/2t2DTdhks/2vpwLJDS2kz+9jwogWBYao1lpDLynhl/kMfeCIseWACYvstbtYhvew@lists.postgresql.org X-Gm-Message-State: AOJu0Yy/YGObr/LaPZQz7mAZPZijqeJz0iK6O/Wvcj2m8aw3I7/G0pds eQL0IBor3hzLStsxZ6NNupzgKeLIC8F6rQAYOO2ZdL0xXotudvNg X-Google-Smtp-Source: AGHT+IHKy55YgIM86G9MCLjRD/LpI3NEH06xJllx9l6/NhBcnb23WeBIfO22iFeE5kQUZpyOBVqjuA== X-Received: by 2002:a05:600c:5119:b0:428:eb6:2e73 with SMTP id 5b1f17b1804b1-42e7ad9c392mr1807955e9.29.1726769307644; Thu, 19 Sep 2024 11:08:27 -0700 (PDT) Received: from smtpclient.apple (26-36-239-77.dyn.cable.qlnet.ch. [77.239.36.26]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e754a619dsm29222045e9.30.2024.09.19.11.08.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Sep 2024 11:08:26 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3818.100.11.1.3\)) Subject: Re: glibc updarte 2.31 to 2.38 From: Paul Foerster In-Reply-To: <7e5c776d-58e0-4e97-8b65-a7076ac503d4@joeconway.com> Date: Thu, 19 Sep 2024 20:07:55 +0200 Cc: Tom Lane , pgsql-general list Content-Transfer-Encoding: quoted-printable Message-Id: <10C568C1-5985-4434-9A73-9ED6C5B64FB1@gmail.com> References: <1991352.1726758874@sss.pgh.pa.us> <7e5c776d-58e0-4e97-8b65-a7076ac503d4@joeconway.com> To: Joe Conway X-Mailer: Apple Mail (2.3818.100.11.1.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Joe, > On 19 Sep 2024, at 19:07, Joe Conway wrote: >=20 > Every glibc major version change potentially impacts the sorting of = some strings, which would require reindexing. Whether your actual data = trips into any of these changes is another matter. >=20 > You could check by doing something equivalent to this on every = collatable column with an index built on it, in every table: >=20 > 8<----------- > WITH t(s) AS (SELECT FROM ORDER BY 1) > SELECT md5(string_agg(t.s, NULL)) FROM t; > 8<----------- >=20 > Check the before and after glibc upgrade result -- if it is the same, = you are good to go. If not, rebuild the index before *any* DML is done = to the table. I like the neatness of this one. I think about how to implement this on = hundreds of of databases with hundreds of columns. That'll be a = challenge, but at least it's a start. Thanks very much for this one. Cheers, Paul=