oreodb.blogg.se

Postgres app create database
Postgres app create database










postgres app create database

Postgres app create database full#

Optional parameters can be written in any order, not only the order illustrated above.ĬREATE DATABASE cannot be executed inside a transaction block.Įrrors along the line of “ could not initialize database directory” are most likely related to insufficient permissions on the data directory, a full disk, or other file system problems. If true, then this database can be cloned by any user with CREATEDB privileges if false (the default), then only superusers or the owner of the database can clone it. How many concurrent connections can be made to this database. The default is true, allowing connections (except as restricted by other mechanisms, such as GRANT/ REVOKE CONNECT). If false then no one can connect to this database. See CREATE TABLESPACE for more information. This tablespace will be the default tablespace used for objects created in this database. The name of the tablespace that will be associated with the new database, or DEFAULT to use the template database's tablespace.

postgres app create database

The default is to use the character classification of the template database. This affects the categorization of characters, e.g., lower, upper and digit. lc_ctypeĬharacter classification ( LC_CTYPE) to use in the new database. The default is to use the collation order of the template database.

postgres app create database

This affects the sort order applied to strings, e.g., in queries with ORDER BY, as well as the order used in indexes on text columns. lc_collateĬollation order ( LC_COLLATE) to use in the new database. The character sets supported by the PostgreSQL server are described in Section 23.3.1. Specify a string constant (e.g., 'SQL_ASCII'), or an integer encoding number, or DEFAULT to use the default encoding (namely, the encoding of the template database). encodingĬharacter set encoding to use in the new database. The name of the template from which to create the new database, or DEFAULT to use the default template ( template1). To create a database owned by another role, you must be a direct or indirect member of that role, or be a superuser. The role name of the user who will own the new database, or DEFAULT to use the default (namely, the user executing the command).












Postgres app create database