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 1vCKbu-00CDEl-Ta for pgsql-general@arkaria.postgresql.org; Fri, 24 Oct 2025 16:25:50 +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 1vCKbs-000DrP-Cr for pgsql-general@arkaria.postgresql.org; Fri, 24 Oct 2025 16:25:47 +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.94.2) (envelope-from ) id 1vCKbr-000DrH-U5 for pgsql-general@lists.postgresql.org; Fri, 24 Oct 2025 16:25:47 +0000 Received: from mail-ej1-x62f.google.com ([2a00:1450:4864:20::62f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vCKbo-003ZK8-0m for pgsql-general@lists.postgresql.org; Fri, 24 Oct 2025 16:25:45 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-b6d5c59f2b6so147318566b.2 for ; Fri, 24 Oct 2025 09:25:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=peoplecall-com.20230601.gappssmtp.com; s=20230601; t=1761323141; x=1761927941; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tC1ehzY+NfCCZjToWRlkBd8qShInnR/9ovlelUEtbDw=; b=XN5BvfwBQhk1I4Yt55UxmZEo8Tv+10BxlsH1d/I736bwmPiONOYxGyJtyCBlWerONZ NjND2Q9d1THp8ltP0LKikt7cpkIj8q8ak11UNJsSys+sVWKtaJiRiIMsY955LC9XMtDz IGTzyOllDyahkweTYem+TBfXZm+lN31ph4rPupk7jdgGbllf6DR6vt2oEFN4oQQF/x/R Ym8LfhG2eDQi2oZb1U1i5ETKqOmTtA+S2mzp6235pRc3cYfD/6SAXCAzRbZrlBAwLfeD mA/KVruRO/CuE+FGI9Me86IvYJ01j88rM61u10b/d1RNj0iyjXDZEbnkHOjWNuYz4NVy 19Ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761323141; x=1761927941; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tC1ehzY+NfCCZjToWRlkBd8qShInnR/9ovlelUEtbDw=; b=hQoYm/HdRhPMh9NafBJo5NC5NaoloZVcUmv34PyjbHWif31h9eUlWbFwPuhyVAUi9x ap8CYkIfWNuvwtXHjIFBiHrd5LzqudRCCoUaPGTY70/OxeqRjfRcJh/rrVus4uIcdR3X 6+uWj0i2HyAR+0B326/P+D8x6R8A1fzwNeTaC6Fv559rryqfD8MsI6lAocFWahvD2DtB dqWIKF2IhK3gS46TdLFSPjgdY3RVi2+kaLocxPatXD5TXhIdgUEAkOAOMDshuqpuWEns eIPTQguZGggg6syAuDVbJR6A4B2DjoNfT9GRVsUuX0CvFx5+PsGUF8XoSTsaJd39pZ6s EZxA== X-Forwarded-Encrypted: i=1; AJvYcCXNPHLWa4+UgV8DqQDXiy7trI5k2xKQvfFPzMEZ/dcmPu3j92NMRQUiIcm3iu+Bq47LqZjjG7UhN+q6Zcho@lists.postgresql.org X-Gm-Message-State: AOJu0Yx0NaBl871ofGZyHqM2YRdLTR775gDJoBgLrQgaCT7C2ldmZBMA olYZm/haawtbEOrrrYFSGjbN1y2b4o+qfxy4AhvUgxDcgD6YwgAggkuUWCpJ5U2B9qn+rx9aLVT p6Yn3klF6HOvEycXKmLKQvW+Lo+CF/eZdhAGhvBV+ X-Gm-Gg: ASbGncvbbw/F5cSIhNy9JczfGw5Ou78c0XE/SODaPPRlWFAYa1Aj320R9QcGDFqgbVK gpEtZvfJE3Tmu9iaS+v3Qafd8YA3HBmZHgVsCnb8J2oHztu/jkeaOScRPozJrz8ieHm1GxvYp4Y LF+8DdmSUTPle3v783LjwA7N68GgUrenb3rWnEO6ZTsgagwECNoLt2l/jIU+OxWeJx17LKdHJ+H 5EcEXszTDghZYdfnBexazzgXddAce3aYcD7/KHTaOVT5Su8d6Re6yRjwxcCVsS3ajUbid0y+0Vn fzdU/g4= X-Google-Smtp-Source: AGHT+IEB00pj+ZXG2f292z06CLWutuasQXNT3xmkEK3CR0bPdDtd8aNWboFWQFo6zj+22v8h7LPADpeMXMua9yEdFbc= X-Received: by 2002:a17:907:d06:b0:b63:9bef:8d94 with SMTP id a640c23a62f3a-b6474b36b63mr3658561166b.38.1761323141156; Fri, 24 Oct 2025 09:25:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Francisco Olarte Date: Fri, 24 Oct 2025 18:25:04 +0200 X-Gm-Features: AWmQ_bkdM1EFGITfZFX4sLdik6lh3VE_sbzef4sqt6kxcaWHhrxpREBctKB4dg4 Message-ID: Subject: Re: Index corruption issue after migration from RHEL 7 to RHEL 9 (PostgreSQL 11 streaming replication) To: Greg Sabino Mullane Cc: Bala M , "adrian.klaver@aklaver.com" , chris+google@qwirx.com, pgsql-general@lists.postgresql.org Content-Type: multipart/alternative; boundary="00000000000029e04e0641ea0079" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000029e04e0641ea0079 Content-Type: text/plain; charset="UTF-8" On Thu, 23 Oct 2025 at 17:21, Greg Sabino Mullane wrote pg_dump is the most reliable, and the slowest. Keep in mind that only the > actual data needs to move over (not the indexes, which get rebuilt after > the data is loaded). You could also mix-n-match pg_logical and pg_dump if > you have a few tables that are super large. Whether either approach fits in > your 24 hour window is hard to say without you running some tests. > Long time ago I had a similar problem and did a "running with scissors" restore. This means: 1.- Prepare normal configuration, test, etc for the new version. 2.- Prepare a restore configuration, with fsync=off, wallevel=minimal, whatever option gives you any speed advantage. As the target was empty, if restore failed we could just clean and restart. 3.- Dump, boot with the restore configuration, restore, clean shutdown, switch to production configuration, boot again and follow on. Time has passed and I lost my notes, but I remember the restore was much faster than doing it with the normal production configuration. Given current machine speeds, it maybe doable. Francisco Olarte. --00000000000029e04e0641ea0079 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, 23 Oct 2025 at 17:21, Greg Sabino = Mullane <htamfids@gmail.com>= ; wrote

pg_dump is the most reliable, and the slowest. Keep in mind that = only the actual data needs to move over (not the indexes, which get rebuilt= after the data is loaded). You could also mix-n-match pg_logical and pg_du= mp if you have a few tables that are super large. Whether either approach f= its in your 24 hour window is hard to say without you running some tests.

Long time ago I had a similar = problem and did a "running with scissors" restore. This means:
<= br>
1.- Prepare normal configuration, test, etc for the new version.
=
2.- = Prepare a restore configuration, with fsync=3Doff, wallevel=3Dminimal, what= ever option gives you any speed advantage.

As the target was empty, = if restore failed we could just clean and restart.

3.- Dump, boot wi= th the restore configuration, restore, clean shutdown, switch to production= configuration, boot again and follow on.

Time has passed and I lost= my notes, but I remember the restore was much faster than doing it with th= e normal production configuration. Given current machine speeds, it maybe d= oable.


Francisco Olarte.

--00000000000029e04e0641ea0079--