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 1sy6vO-00EQfG-Gl for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 09:54:38 +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 1sy6vN-006OW7-8P for pgsql-admin@arkaria.postgresql.org; Tue, 08 Oct 2024 09:54:37 +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 1sy6vM-006OVz-OI for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 09:54:36 +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.94.2) (envelope-from ) id 1sy6vK-0036Lu-6x for pgsql-admin@lists.postgresql.org; Tue, 08 Oct 2024 09:54:35 +0000 Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-a995f56ea2dso234500766b.1 for ; Tue, 08 Oct 2024 02:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728381273; x=1728986073; 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=oAnuhLKx1rhP7iEzNtQf9BXV26vMyDAOgZ+ra7GW3Z8=; b=eL9Uooo47wLcLRaYcoWXyCGXfqFQKOYUWMdcFZfv70+dBxwU0NtrV7wO+Ot3ygZ440 KqK/79ZBp+3382BS1L0GKZkqAfPclQ+i8ZX7v/XBR5LyRKPSQbcwoariP24zHybzMG7h Npia2GuIWKOyFWGzQRGOXNcYG5paibE6n7kIFQgm4KXRThcOtxtLbW1NH0uwMavZyVQj mUtsHFarGs2k3LZ2xolOCawrllZjkV7xGpXZl32ibFtbRzSsWuZcJ9u8iG+YVL27soZU 9frRH+1dUkuS+vZ2WzUwgVD2sxUJGt/M53oQsYbok8UEDJ8VFdsH8oVeGRBqF2fju8gj D/AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728381273; x=1728986073; 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=oAnuhLKx1rhP7iEzNtQf9BXV26vMyDAOgZ+ra7GW3Z8=; b=gbd5PJ6S3M7FjtjUjLf9mVK2n/JjqT/0O8x/cVkQ/yq1W56sY/PIsWQZExqA4Rogz5 RcH/bPDXy2X1X++My3iFdz68cJPlJucsHloTwiMQsZlDxm/7+HRBBV7Jtl1T1CR52qzH 2MIkRnA6WYtWlEQy0HNjE+puDYiJzGqtxH5dpAPZWagMrg0CawZR1pRIoLSULeVFphWD MKAJ+42tguUn6rEaY8iKsGakmqssG51Fj/KHyhyT7G4VhgfDgwyyeTCqzBVnvuVNVnyp 7l9lwf+g8F0F9Q/50ueoeKqo2+MK5Odbyfn9XgohkmBsjsVmpJcrUSL7Qq+W5Ph0TsA+ +8Zg== X-Gm-Message-State: AOJu0YzD8rnRARTJ8sytUkrfKggMKKUpjzYtq4MgqkGk7SXoG//+8+cb TzFwFnQ5bY23gpf8SfSoclQiLUO2Zj36glGCIBA6NbiHKNW5hNPmM+QMlSt+3WYAM3wrAN8hna/ UI8xnkqlXviTfOlXGOg7rnjV23Mk= X-Google-Smtp-Source: AGHT+IH5EHi/xzv85FKJ3CmmyVs6ziaWOSi6xFDvmP0aRS5Z3F/QobaE2OJuC4VnPV/bVOe41+SSuyXw7OCACmi5YcQ= X-Received: by 2002:a17:907:969e:b0:a99:7d2c:b3c with SMTP id a640c23a62f3a-a997d2c3429mr70356266b.59.1728381272495; Tue, 08 Oct 2024 02:54:32 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Zaid Shabbir Date: Tue, 8 Oct 2024 14:54:21 +0500 Message-ID: Subject: Re: RHEL certified repo provided PostgreSQL Major Version Upgrade. To: Sameer Malve Cc: pgsql-admin@lists.postgresql.org, Sameer.Malve@mobileum.com Content-Type: multipart/alternative; boundary="000000000000c89dfe0623f41fda" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000c89dfe0623f41fda Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Sameer, For upgrade you can also use quick upgrade scripts /usr/pgsql-16/bin/postgresql-16-setup check_upgrade /usr/pgsql-16/bin/postgresql-16-setup upgrade Above commands are helpful to upgrade from 15 to 16, in case someone wants to upgrade from -2 older version then some minor adjustments required in setup script. Regards, Zaid On Tue, Oct 8, 2024 at 1:24=E2=80=AFPM Sameer Malve = wrote: > Hi Team, > > We are trying to perform the Major version upgrade on RHEL 8 using > RHEL-certified repo `rhel-8-for-x86_64-appstream-rpms` from PG 15.6 to PG > 16.4 using `pg_upgrade` but we are facing the below issue. > > As the binaries are getting upgraded in-place `/usr/bin` hence while > performing pg_upgrade we are not getting the older binaries. > > pg_upgrade command is as follows. > > [2024-10-04 11:18:47] $ /usr/bin/pg_upgrade -b /usr/bin/ -B /usr/bin/ -d >> /pgData/pgsql/15/data -D /pgData/pgsql/16/data -c >> [2024-10-04 11:19:19] >> [2024-10-04 11:19:19] You must identify the directory where the old >> cluster binaries reside. >> [2024-10-04 11:19:19] Please use the -b command-line option or the >> PGBINOLD environment variable. >> [2024-10-04 11:19:19] Failure, exiting >> > > > Regards, > Sameer Malve > --000000000000c89dfe0623f41fda Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello=C2=A0Sameer,

For upgrade you can = also use quick upgrade scripts

/usr/pgsql-16/bin/postgresql-16-setup check_upgrade

/usr/pgsql-16/bin/postgresq= l-16-setup upgrade


Above commands are helpful to upgrade from 15= to 16, in case someone wants to upgrade from -2 older version then some mi= nor adjustments required in setup script.



Regards,<= /span>

Zaid


On Tue, Oct 8, 2024 = at 1:24=E2=80=AFPM Sameer Malve <malvesameer@gmail.com> wrote:
Hi Team,

We are trying to perform the Major ver= sion upgrade on RHEL 8 using RHEL-certified repo `rhel-8-for-x86_64-appstre= am-rpms` from PG 15.6 to PG 16.4 using `pg_upgrade` but we are facing the b= elow issue.

As the binaries are getting upgraded i= n-place `/usr/bin` hence=C2=A0while performing pg_upgrade we are not gettin= g the older binaries.

pg_upgrade command is as fol= lows.

[2024-10-04 11:18:47]=C2=A0 $ /u= sr/bin/pg_upgrade -b /usr/bin/ -B /usr/bin/ -d /pgData/pgsql/15/data -D /pg= Data/pgsql/16/data -c
[2024-10-04 11:19:19] =C2=A0
[2024-10-04 11:19:= 19] =C2=A0You must identify the directory where the old cluster binaries re= side.
[2024-10-04 11:19:19] =C2=A0Please use the -b command-line option = or the PGBINOLD environment variable.
[2024-10-04 11:19:19] =C2=A0Failur= e, exiting
=C2=A0

Regards,
Sameer Malve
--000000000000c89dfe0623f41fda--