If you used dnf to install an RPM package of EDB Postgres Extended Server (on RHEL, AlmaLinux, Rocky Linux), use dnf to perform a minor version upgrade of the packages.
Overview
Check for available updates with
dnf check-update.Upgrade the EDB Postgres Extended Server packages with
dnf update.Restart the server with
pg_ctl.Verify the server version with psql.
Worked example
To list the package updates available for your system, open a command line, assume root privileges, and enter the command:
sudo dnf check-update <package_name>
For example, if you want to upgrade to the latest minor version of EDB Postgres Extended Server 16, run:
sudo dnf check-update edb-postgresextended16Note
You can include wildcard values in the search term. For example, if you're looking for EDB Packages, you can run
sudo dnf check-update edb-*. For more information about usingdnfcommands and options, enterdnf --helpat the command line.Once you've figured the name and version of the package you want to install, use
dnf updateto install the package:sudo dnf update edb-postgresextended16Output================================================================================ Package Arch Version Repository Size ================================================================================ Upgrading: edb-postgresextended16 x86_64 16.3-2.el9 enterprisedb-enterprise 1.7 M edb-postgresextended16-contrib x86_64 16.3-2.el9 enterprisedb-enterprise 724 k edb-postgresextended16-libs x86_64 16.3-2.el9 enterprisedb-enterprise 330 k edb-postgresextended16-server x86_64 16.3-2.el9 enterprisedb-enterprise 6.8 M Transaction Summary ================================================================================ Upgrade 4 Packages Total download size: 9.5 M Is this ok [y/N]
Confirm with
y. The output displays an overview of all performed processes, where you can see the packages that were upgraded:y
Outputedb-postgresextended16-16.3-2.el9.x86_64 edb-postgresextended16-contrib-16.3-2.el9.x86_64 edb-postgresextended16-libs-16.3-2.el9.x86_64 edb-postgresextended16-server-16.3-2.el9.x86_64
To finalize the upgrade, restart the server. Replace
<path_to_data_directory>with the path to the data directory of the server or servers you're upgrading:/usr/edb/pge16/bin/pg_ctl -D <path_to_data_directory> restart
For example:
/usr/edb/pge16/bin/pg_ctl -D /var/lib/edb-pge/16/upgrade restartVerify the expected database version is running by connecting to psql:
/usr/edb/pge16/bin/psql
Check the server version:
SHOW server_version;
Outputserver_version -------------------------------------------- 16.3 (EDB Postgres Extended Server 16.3.0)