You will need to log into the PostgreSQL database server to configure it.
Create a symbolic link of the extension file entrust_psql_extension_{posgresql_version}.so to the PostgreSQL Server VM lib directory, where {postgresql_version} is the major version of PostgreSQL.
For example:
Copyln -s </pa_installation_directory_path/lib/entrust_psql_extension_{postgresql_version}.so </path_of_postgresql_extension_directory/entrust_psql_extension_{postgresql_version}.soTo find your PostgresSQL version, run the following:
Copypostgres=# select version();
version
-----------------------------------------------------------------------------------------------------------------------------------
PostgreSQL 16.8 (Ubuntu 16.8-1.pgdg24.04+1) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0, 64-bitNote: The lib/extension directory may be different depending on the Linux distribution. For Ubuntu it is /usr/lib/postgresql/16/lib/.
Create a symbolic link of the sql and control file to the share/extension directory of PostgreSQL Server VM. The share/extension directory may be different depending on the Linux distribution. For example, for Ubuntu it is /usr/share/postgresql/16/extension/.
SQL example:
Copyln -s </pa_installation_directory_path/postgresql/entrust_psql_extension--1.0.sql </path_of_postgresql_extension_share_directory/entrust_psql_extension--1.0.sqlControl file example:
Copyln -s </pa_installation_directory_path/postgresql/entrust_psql_extension.control </path_of_postgresql_extension_share_directory/entrust_psql_extension.controlLog in to PostgreSQL. For example:
Copysudo -u postgres psqlRun the PostgreSQL query to create the extension. For example:
CopyCREATE EXTENSION entrust_psql_extension;