Connecting to a PostgreSQL Database
For native connectivity, install the version of PostgreSQL client appropriate for the PostgreSQL database server version.
To ensure compatibility between Informatica and databases, use the appropriate database client libraries.
You must install compatible versions of the PostgreSQL client and PostgreSQL database server. You must also install the same version of the PostgreSQL client on all machines that require it. To verify compatibility, contact PostgreSQL.
Configuring Native Connectivity
You can configure native connectivity to an PostgreSQL database to increase performance.
The following steps provide a guideline for configuring native connectivity through PostgreSQL. For specific instructions, see the database documentation.
1. To configure connectivity for the PowerCenter Integration Service and PowerCenter Repository Service process, log in to the machine as a user who can start the server process.
2. To install PostgreSQL database for the PowerCenter repository, set values for the PostgreSQL database host, port, and service name for the pg_service.conf file in the following format:
[PCRS_DB_SERVICE_NAME]
host=Database host IP
port=Database port
dbname=PowerCenter Repository Service database service name
To securely connect to PostgreSQL for the PowerCenter repository, set the sslmode to require along with the remaining required database properties in the pg_service.conf file in the following format: sslmode=require
3. Set the PGSERVICEFILE, PGHOME, and PATH environment variables.
PGSERVICEFILE. Set the variable to the pg_service.conf file that contains the connection parameters for PostgreSQL database connection. For example, set the variable as follows:
Using a Bourne shell:
$ export PGSERVICEFILE; PGSERVICEFILE=<InstallationDirectory>/pg_service.conf
Using a C shell:
$ setenv PGSERVICEFILE <InstallationDirectory>/pg_service.conf
PGHOME. Set the variable to the PostgreSQL installation path where you have installed the PostgreSQL client. For example, set the variable as follows:
Using a Bourne shell:
$ export PGHOME; PGHOME=/usr/pgsql-10
Using a C shell:
$ setenv PGHOME /usr/pgsql-10
PATH. To run the PostgreSQL command line programs, set the variable to include the PostgreSQL client directory, psql. For example, set the variable as follows:
Using a Bourne shell:
$ export PATH; PATH=${PATH}:${PGHOME}
Using a C shell:
$ setenv PATH ${PGHOME}:${PATH}
4. Verify that you can connect to the PostgreSQL database.
To connect to the PostgreSQL database, launch the psql utility and enter the connectivity information.