Полезная информация

1.10. Environment Variables

The following environment variables can be used to select default connection parameter values, which will be used by PQconnectdb or PQsetdbLogin if no value is directly specified by the calling code. These are useful to avoid hard-coding database names into simple application programs.

The following environment variables can be used to specify user-level default behavior for every PostgreSQL session:

The following environment variables can be used to specify default internal behavior for every PostgreSQL session:

Refer to the SET SQL command for information on correct values for these environment variables.