Pascal Data Objects

PostgreSQL DSN Options

The PDO PostgreSQL Data Source Name (DSN) is composed of the following elements:

The DSN prefixes is pgsql-8.1

host: The hostname on which the database server resides.
port: The port number where the database server is listening.
dbname: The name of the database.

Examples

pdo:pgsql-8.1://host=localhost;dbname=testdb
pdo:pgsql-8.1://host=localhost;port=5432;dbname=testdb