postgresql_16:7.2.2.1 Description
PostgreSQL 16 > Reference > PostgreSQL Client Applications > createdb > Description
createdb creates a new PostgreSQL database.
Normally, the database user who executes this command becomes the owner of the new database. However, a different owner can be specified via the -O option, if the executing user has appropriate privileges.
createdb is a wrapper around the SQL command CREATE DATABASE (see postgresql_16:7.1.59). There is no effective difference between creating databases via this utility and via other methods for accessing the server.