You can either use the PostgreSQL that is included with your Ubuntu, or use the PostgreSQL Advanced Packaging Tool (APT) Repository. For the list of supported versions, see Database Vault Overview.
The supported algorithm is AES-256.
Installing PostgreSQL in Ubuntu:
PostgreSQL is included automatically with Ubuntu. You can install it by using the following APT command:
apt install postgresqlUsing the PostgreSQL APT Repository
If the PostgreSQL version included in your version of Ubuntu is not the one that you want to use, you can use the PostgreSQL APT Repository. The PostgreSQL APT Repository supports the following versions of Ubuntu:
noble (24.04, LTS)
mantic (23.10, non-LTS)
jammy (22.04, LTS)
focal (20.04, LTS)
To automatically install and configure the PostgreSQL APT Repository, use the following APT commands:
sudo apt install -y postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.shTo manually install and configure the PostgreSQL APT Repository, perform the following:
Import the repository signing key. For example:
Copysudo apt install curl ca-certificates
sudo install -d /usr/share/postgresql-common/pgdg
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.ascCreate the repository confirmation file. For example:
Copysudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'Update the package lists. For example:
Copysudo apt updateInstall the latest version of PostgreSQL. For example:
Copysudo apt -y install postgresqlNote: If you want to use a particular version of PostgreSQL, enter that instead of 'postgresql'. For example, use 'postgresql-16'.