createdb

A core utility for creating a database

createdb is a core utility for creating a database and is essentially a wrapper around the CREATE DATABASE SQL command.

createdb was added in PostgreSQL 7.0 (commit 240e4c98).

Usage

Since PostgreSQL 8.3, createdb no longer emits any output on successful creation of a database.

Source code

The createdb source code is located at src/bin/scripts/createdb.c.

Change history

Categories

Core utility

See also

CREATE DATABASE, dropdb