Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nix9u-0007yG-F5 for pgsql-general@arkaria.postgresql.org; Mon, 25 Apr 2022 11:45:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nix9s-0007fs-E6 for pgsql-general@arkaria.postgresql.org; Mon, 25 Apr 2022 11:45:36 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nix9r-0007fj-O6 for pgsql-general@lists.postgresql.org; Mon, 25 Apr 2022 11:45:35 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nix9k-0003rf-1A for pgsql-general@lists.postgresql.org; Mon, 25 Apr 2022 11:45:34 +0000 Received: by mail-wr1-x42d.google.com with SMTP id q23so7552829wra.1 for ; Mon, 25 Apr 2022 04:45:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=r9FMBCJFSjKjP+bdvBu+1vzNUwbMZdTp+6JIeHaXqhk=; b=Spalj7klodHphvtjeVEmu3+QWRi9oVfibBVq45W8kGw4FVCJuA33PKubRgdvhGdx6J DlBXwbpFboUQN2Uab4fc70nPtafNxH25J2CNa3P6I++mPTp6lxv6D+BSxgsisvcNwJ72 B5Jx+qOLG8H6DCToxEQ4SF4yiiiGrFJIcE19ERj9HVpvsfjoCJW6KNxW2H/Gqe8uu1j0 LY8j7xKkOYBCeZVrhs1c+Cw/RDY8fuww8drewYm2lQNVpVA2itfcO4GbEm6gR8ezwHOx Z1OIWcoERg10fj+Pg8VoxnyBQfCg7FH3RCgqKY1PBvPFQNHOXoMWWuc7PW7ha+z7eUS+ yIaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=r9FMBCJFSjKjP+bdvBu+1vzNUwbMZdTp+6JIeHaXqhk=; b=vPD6f9CtJ2ZxKbR5ax0cR/Q1P3J/ectX62Gd2il3mu4jryClrgFtbb5iYQUuIEfv0m VDidH6hpLxBq1qPfgdlv1wWdpjunoQGnlPjvrgLWP2xAuQCmWHF1g3vvPDa5w1Yk/pXV ALKR8+BkY9oLDdkUJDRFeKbzq4GMnYR/76Dz8UIVneMdMjgqeFnEUU7cBXkEgvBJsmLh 1PPotA9vjID4z4OCrgqP6Dxk9Wbza2AUTzzqsHmCvcSpk/Cgn4CtFngQR9/YFgNJePnw K+m8CH1bGvJWRghMSz9TEPlc/lv9+FaDBbxddhl0yIma27mqw8adaDGSgSZO4kuxlsLM CtyA== X-Gm-Message-State: AOAM532xGPcAvAXxOoyFOYhYTWRiFNLMt0J0I3c4zR9par1RqfusEg84 vPtvcTnqUeXdLv6t1l6FiXGWVg== X-Google-Smtp-Source: ABdhPJwX9IjCG6YUwEdEzanJmVdVPnpEdsSVQJWz4u83CO/50JQMYfxUM4qGFGSUmeLEOhgpguc3kQ== X-Received: by 2002:adf:ba8f:0:b0:1e9:4afb:179b with SMTP id p15-20020adfba8f000000b001e94afb179bmr13849984wrg.57.1650887126056; Mon, 25 Apr 2022 04:45:26 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:9f3a:d303:1358:e809:cdbb]) by smtp.gmail.com with ESMTPSA id b5-20020adff905000000b0020a8781be70sm8621479wrr.12.2022.04.25.04.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 04:45:25 -0700 (PDT) Message-ID: Subject: Re: Handling glibc v2.28 breaking changes From: Laurenz Albe To: Pradeep Chhetri , pgsql-general@lists.postgresql.org Date: Mon, 25 Apr 2022 13:45:24 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-5.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2022-04-24 at 23:31 +0800, Pradeep Chhetri wrote: > I am sure this has been discussed multiple times in the past but I would like to initiate > this discussion again. I have 3 nodes cluster of Postgres v9.6. They all are currently > running on Debian 9 (with glibc v2.24) and need to upgrade them to Debian 10 (with glibc v2.28) > without downtime. In order to bypass the glibc issue, I am trying to evaluate whether I can > compile glibc v2.24 on Debian 10, pin postgres to use this manually compiled glibc and > upgrade the linux distribution in rolling fashion. Don't use an old glibc. You will want to move to a different machine or upgrade the operating system, so you will have some down time anyway. You could consider upgrade in several steps: - pg_upgrade to v14 on the current operating system - use replication, than switchover to move to a current operating system on a different machine - REINDEX CONCURRENTLY all indexes on string expressions You could get data corruption and bad query results between the second and the third steps, so keep that interval short. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com