Minor EDB Postgres Extended Server upgrade of Debian packages v17
If you used apt-get to install a Debian package of EDB Postgres Extended Server (on Ubuntu, Debian), use apt-get to perform a minor version upgrade of the packages.
Overview
Upgrade the EDB Postgres Extended Server packages with
apt-get install.Restart the server with
pg_ctl.Verify the server version with psql.
Worked example
To upgrade the existing packages, open a command line, assume root privileges, and enter the command:
sudo apt-get install <package_name>
For example, if you want to upgrade to the latest minor version of EDB Postgres Extended Server 17, run:
sudo apt-get install edb-postgresextended-17
Note
You can perform a search of the packages to ensure you update the right package beforehand. For example, to browse through all EDB Packages, you can run
sudo apt-cache edb. For more information about usingapt-getcommands and options, enterapt-get --helpat the command line.Confirm with
Y.The output displays an overview of all performed processes, where you can see the packages that were upgraded.
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/lib/edb-pge/17/bin/pg_ctl -D <path_to_data_directory> restart
For example:
/usr/lib/edb-pge/17/bin/pg_ctl -D /var/lib/edb-pge/17/upgrade restartVerify the expected database version is running by connecting to psql:
/usr/lib/edb-pge/17/bin/psql
Check the server version:
SHOW server_version;
Outputserver_version -------------------------------------------------------------------- 17.2 (EDB Postgres Extended Server 17.2.0) (Ubuntu 0:17.2-1.jammy) (1 row)
- On this page
- Overview
- Worked example