RefLib

Reference library for AI

Back

postgresql_16:5.3.14.2.2 Parameters

PostgreSQL 16 > Client Interfaces > ECPG — Embedded SQL in C > Embedded SQL Commands > CONNECT > Parameters

*connection_target*

*connection_target* specifies the target server of the connection on one of several forms. [ *database_name* ] [ @*host* ] [ :*port* ] Connect over TCP/IP unix:postgresql://*host* [ :*port* ] / [ *database_name* ] [ ?*connection_option* ] Connect over Unix-domain sockets tcp:postgresql://*host* [ :*port* ] / [ *database_name* ] [ ?*connection_option* ] Connect over TCP/IP SQL string constant containing a value in one of the above forms host variable host variable of type char[] or VARCHAR[] containing a value in one of the above forms

*connection_name*

An optional identifier for the connection, so that it can be referred to in other commands. This can be an SQL identifier or a host variable.

*connection_user*

The user name for the database connection.

This parameter can also specify user name and password, using one the forms *user_name*/*password*, *user_name* IDENTIFIED BY *password*, or *user_name* USING *password*.

User name and password can be SQL identifiers, string constants, or host variables.

DEFAULT

Use all default connection parameters, as defined by libpq.

Back