Upgrading the PEM backend Postgres database v9
If you're updating PEM components and the PEM backend database, perform PEM component updates on the server and agent before updating the backend database. For more information about updating PEM component software, see Upgrading a PEM installation.
Note
From PEM 8.0 onwards, PostgreSQL or EPAS versions 11 or later are only supported as backend database servers. As a result, if your backend database server is earlier than version 11, you need to first upgrade your backend database server and then upgrade the PEM components.
After upgrading the backend database server, if you encounter this error while creating the server in the PEM web interface:
Resolve the error by updating the roles and granting appropriate permissions:
The update process uses the pg_upgrade utility to migrate from one version of the backend server to a more recent version. pg_upgrade enables migration between any supported version of Postgres and any subsequent release of Postgres that's supported on the same platform.
If the source PEM server is earlier than the 7.16 version, then you need to replace the following functions before you run pg_upgrade:
The
abstime
,reltime
, andtinterval
datatypes are deprecated from Postgres version 12 or later, hence to replace those dataypes withtimestamptz
data type use this command:Replace this function to avoid any alert errors:
pg_upgrade supports a transfer of data between servers of the same type. For example, you can use pg_upgrade to move data from a PostgreSQL 10 backend database to a PostgreSQL 11 backend database but not to an EDB Postgres Advanced Server 11 backend database. If you want to migrate to a different type of backend database (such as from a PostgreSQL server to EDB Postgres Advanced Server), see Moving the Postgres Enterprise Manager server.
You can find more information about using pg_upgrade at pg_upgrade.
Download and invoke the updated installer. Installers for PostgreSQL and EDB Postgres Advanced Server are available through the EDB website.
After downloading the installer for the server version you are upgrading to, invoke the installer on the host of the PEM server. Follow the onscreen instructions of the installation wizard to configure and install the Postgres server.
You can optionally use a custom-built PostgreSQL server as a host of the PEM backend database. If you're upgrading from a PostgreSQL backend database listening on port 5432, the new server must be configured to listen on a different port.
Configure SSL utilities on the new server. The new backend database must be running the same version of sslutils that the current backend database is running. You can download the SSL Utils package from the EDB website.
You don't need to manually add the sslutils extension when using the EDB Postgres Advanced Server as the new backend database. The process of configuring sslutils is platform specific.
On Linux
On an EDB Postgres Advanced Server backend database, the sslutils extension is installed by default.
If you're using PostgreSQL as a PEM backend database, verify that you have access to the PostgreSQL community repository, and use the command:
Where
<X>
is the server version.If you're using a EDB one-click installer of PostgreSQL as a PEM backend database, use the command:
Set the value of PATH so it can locate the pg_config program
Move into the
sslutils
folder, and enter:Use psql to create the sslutils extension