Top
Enterprise Postgres 17 SP1 Application Development Guide

8.3 Connecting with the Database

Use the connection service file to specify the connection destination. In the connection service file, a name (service name) is defined as a set, comprising information such as connection destination information and various types of tuning information set for connections. By using the service name defined in the connection service file when connecting to databases, it is no longer necessary to modify applications when the connection information changes.

Refer to "Client Interfaces", "The Connection Service File" in the PostgreSQL Documentation for details.

In addition, refer to "6.3 Connecting with the Database" in "Embedded SQL in C" for information on connection string.

See

Refer to the OSS Psycopg3 API documentation (https://www.psycopg.org/psycopg3/docs/api/index.html) for more information about other connection functions.