Next: libpq Lisp Symbols and DataTypes, Previous: SXEmacs PostgreSQL libpq API, Up: SXEmacs PostgreSQL libpq API
Various Unix environment variables are used by libpq to provide defaults
to the many different parameters. In the SXEmacs Lisp API, these
environment variables are bound to Lisp variables to provide more
convenient access to Lisp Code. These variables are passed to the
backend database server during the establishment of a database
connection and when the pq-setenv call is made.
Initialized from the
PGHOSTenvironment variable. The default host to connect to.
Initialized from the
PGUSERenvironment variable. The default database user name.
Initialized from the
PGOPTIONSenvironment variable. Default additional server options.
Initialized from the
PGPORTenvironment variable. The default TCP port to connect to.
Initialized from the
PGTTYenvironment variable. The default debugging TTY.Compatibility note: Debugging TTYs are turned off in the SXEmacs Lisp binding.
Initialized from the
PGDATABASEenvironment variable. The default database to connect to.
Initialized from the
PGCLIENTENCODINGenvironment variable. The default client encoding.Compatibility note: This variable is not present in non-Mule SXEmacsen. This variable is not present in versions of libpq prior to 7.0. In the current implementation, client encoding is equivalent to the
file-name-coding-systemformat.
Initialized from the
PGAUTHTYPEenvironment variable. The default authentication scheme used.Compatibility note: This variable is unused in versions of libpq after 6.5. It is not implemented at all in the SXEmacs Lisp binding.
Initialized from the
PGCOSTINDEXenvironment variable. Cost index options.