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 1tJxts-0065Sm-Hg for pgsql-admin@arkaria.postgresql.org; Sat, 07 Dec 2024 16:43:25 +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 1tJxtp-00G5zE-TO for pgsql-admin@arkaria.postgresql.org; Sat, 07 Dec 2024 16:43:23 +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 1tJxtp-00G5z5-FX for pgsql-admin@lists.postgresql.org; Sat, 07 Dec 2024 16:43:22 +0000 Received: from cc-smtpout1.netcologne.de ([2001:4dd0:100:1062:25:2:0:1]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tJxtn-001XJj-Ia for pgsql-admin@lists.postgresql.org; Sat, 07 Dec 2024 16:43:21 +0000 Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id B6E06126B1 for ; Sat, 7 Dec 2024 17:43:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=netcologne.de; s=nc1116a; t=1733589798; bh=uHUgxT/XGZVqAGf2Wp7dScTTD2x7aFsfTG9hGhZIGPI=; h=Message-ID:Date:Subject:To:References:From:In-Reply-To:From; b=hPJWsKIzbsVw61NOtICwwzy7Aj0HBbNCLbDzpifn2c05GZrt2J3Km85D5B7J8HxAE 92WHJVgSsHEjojLQzJaPO/yWGu6NvgQp8wvoEgEcCparkz8Z6jEjJwMONW1HUUAW8j aIXKTXq8OK427YhTypuT96npptjmkbJpBg9NadI9p+So9w8JbFCLoe7+luEiCrJ5dZ OAeLdZB7w5HsgNzU9FC8UXySORksFsBzFQcHsDw1vg/tzUW7XHdi7PdN1Kx7YfTQNQ AAt4Du/rkq/za/tHXgthHc+DFCaHtD29CpPRHzsrqhNMleurXmRbQFcuKFmMFQHopM 31c6vDvwBR73A== Received: from [IPV6:2a03:b580:af0d:7a01:c0ee:a82d:f282:cec] (unknown [IPv6:2a03:b580:af0d:7a01:c0ee:a82d:f282:cec]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA id 5A03011D6D for ; Sat, 7 Dec 2024 17:43:13 +0100 (CET) Content-Type: multipart/alternative; boundary="------------u4o6zhvTeOr57iXSX5wEMlJ5" Message-ID: <7882d3da-3445-4c80-a766-1246e55415da@netcologne.de> Date: Sat, 7 Dec 2024 17:43:11 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Postgres compatibility with RHEL To: pgsql-admin@lists.postgresql.org References: Content-Language: en-US From: vrms In-Reply-To: X-NetCologne-Spam: L X-Rspamd-Queue-Id: 5A03011D6D X-Spamd-Bar: - X-Rspamd-Action: no action List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------u4o6zhvTeOr57iXSX5wEMlJ5 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I believe the best way would be to   1. setup a new rhel9 server with pg16   2. get a dump (pg_dumpall) from the old machine onto the new machine   3. restore that dump   4. copy pg_hba.conf and postgresql.conf over to the new machine   4.1. make sure to keep the new postgresql.conf and adjust custom settings you may have on the old machine with making sure those settings have not changed If you want to do this close to zero downtime, you could set up logical replication to the new pg16 machine and once that is finished switch over and promote that to be the new main. On 04.12.24 14:03, Siddhartha Jain wrote: > Hi, > > Please let me know if Postgresql 16 is compatible with RHEL 7.9 > version and RHEL 9.1 version. > I need to upgrade postgres from 11.22 to 16.6 and need information for > that as the OS version is going to upgrade from 7.9 to 9.1. > Also, let me know the strategies if any to upgrade both RHEL and DB. > > Thanks, > Siddhartha --------------u4o6zhvTeOr57iXSX5wEMlJ5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit I believe the best way would be to

  1. setup a new rhel9 server with pg16
  2. get a dump (pg_dumpall) from the old machine onto the new machine
  3. restore that dump
  4. copy pg_hba.conf and postgresql.conf over to the new machine
  4.1. make sure to keep the new postgresql.conf and adjust custom settings you may have on the old machine with making sure those settings have not changed

If you want to do this close to zero downtime, you could set up logical replication to the new pg16 machine and once that is finished switch over and promote that to be the new main.



On 04.12.24 14:03, Siddhartha Jain wrote:
Hi,

Please let me know if Postgresql 16 is compatible with RHEL 7.9 version and RHEL 9.1 version.
I need to upgrade postgres from 11.22 to 16.6 and need information for that as the OS version is going to upgrade from 7.9 to 9.1. 
Also, let me know the strategies if any to upgrade both RHEL and DB. 

Thanks,
Siddhartha 
--------------u4o6zhvTeOr57iXSX5wEMlJ5--