RefLib

Reference library for AI

Back

postgresql_16:7.2.2.3 Environment

PostgreSQL 16 > Reference > PostgreSQL Client Applications > createdb > Environment

PGDATABASE

If set, the name of the database to create, unless overridden on the command line.

PGHOST, PGPORT, PGUSER

Default connection parameters. PGUSER also determines the name of the database to create, if it is not specified on the command line or by PGDATABASE.

PG_COLOR

Specifies whether to use color in diagnostic messages. Possible values are always, auto and never.

This utility, like most other PostgreSQL utilities, also uses the environment variables supported by libpq (see (see postgresql_16:5.1.15)).

Back