Search PostgreSQL documentation
PG 18 · Browse by category, or enter a name or keyword
Popular entries9769
CREATE USER MAPPINGCREATE USER MAPPING
Foreign Data
10
define a new mapping of a user to a foreign server
CREATE USER MAPPING [IF NOT EXISTS] FOR { user_name | USER | CURRENT_USER | PUBLIC }
SERVER server_name…SQL Commands · Foreign Data
CREATE VIEWCREATE VIEW CREATE VIEW — define a new view
Synopsis CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW name [ ( column_name [, ...] ) ] [ WITH ( view_option_name [= view_option_v…CREATE VIEW
CREATE VIEWCREATE VIEW
Tables & Views
10
define a new view
CREATE [ OR REPLACE ] [ TEMP | TEMPORARY ] [ RECURSIVE ] VIEW name [ ( column_name [, ...] ) ]
[ WITH ( view_option_name [= view_option_value]…SQL Commands · Tables & Views
createdbcreatedb createdb — create a new PostgreSQL database
Synopsis createdb [connection-option...] [option...] [dbname [description]]createdb
createdbcreatedb createdb — create a new PostgreSQL database
Synopsis createdb [connection-option...] [option...] [dbname [description]]createdb
createdb --builtin-locale=locale--builtin-locale=locale
Specifies the locale name when the builtin provider is used. Locale support is described in Section 23.1.createdb › Options
createdb --echo-e--echo
Echo the commands that createdb generates and sends to the server.createdb › Options
createdb --encoding=encoding-E encoding--encoding=encoding
Specifies the character encoding scheme to be used in this database. The character sets supported by the PostgreSQL server are described in Section 23.3.1.createdb › Options
createdb --help-?--help
Show help about createdb command line arguments, and exit.createdb › Options
createdb --host=host-h host--host=host
Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket.createdb › Options
createdb --icu-locale=locale--icu-locale=locale
Specifies the ICU locale ID to be used in this database, if the ICU locale provider is selected.createdb › Options
createdb --icu-rules=rules--icu-rules=rules
Specifies additional collation rules to customize the behavior of the default collation of this database. This is supported for ICU only.createdb › Options
createdb --lc-collate=locale--lc-collate=locale
Specifies the LC_COLLATE setting to be used in this database.createdb › Options
createdb --lc-ctype=locale--lc-ctype=locale
Specifies the LC_CTYPE setting to be used in this database.createdb › Options
createdb --locale-provider={builtin|libc|icu}--locale-provider={builtin|libc|icu}
Specifies the locale provider for the database's default collation.createdb › Options
createdb --locale=locale-l locale--locale=locale
Specifies the locale to be used in this database. This is equivalent to specifying --lc-collate, --lc-ctype, and --icu-locale to the same value. Some locales are onl…createdb › Options
createdb --maintenance-db=dbname--maintenance-db=dbname
Specifies the name of the database to connect to when creating the new database. If not specified, the postgres database will be used; if that does not exist (or if i…createdb › Options
createdb --no-password-w--no-password
Never issue a password prompt. If the server requires password authentication and a password is not available by other means such as a .pgpass file, the connection attempt wi…createdb › Options
createdb --owner=owner-O owner--owner=owner
Specifies the database user who will own the new database. (This name is processed as a double-quoted identifier.)createdb › Options
createdb --password-W--password
Force createdb to prompt for a password before connecting to a database. This option is never essential, since createdb will automatically prompt for a password if the server de…createdb › Options
createdb --port=port-p port--port=port
Specifies the TCP port or the local Unix domain socket file extension on which the server is listening for connections.createdb › Options
createdb --strategy=strategy-S strategy--strategy=strategy
Specifies the database creation strategy. See CREATE DATABASE STRATEGY for more details.createdb › Options
createdb --tablespace=tablespace-D tablespace--tablespace=tablespace
Specifies the default tablespace for the database. (This name is processed as a double-quoted identifier.)createdb › Options
createdb --template=template-T template--template=template
Specifies the template database from which to build this database. (This name is processed as a double-quoted identifier.)createdb › Options
createdb --username=username-U username--username=username
User name to connect as.createdb › Options
createdb --version-V--version
Print the createdb version and exit.createdb › Options
createrole_self_grantcreaterole_self_grant
Client Connection Defaults
16
If a user who has CREATEROLE but not SUPERUSER creates a role, and if this is set to a non-empty value, the newly-created role will be gra…Configuration · Client Connection Defaults
createusercreateuser createuser — define a new PostgreSQL user account
Synopsis createuser [connection-option...] [option...] [username]createuser
createusercreateuser createuser — define a new PostgreSQL user account
Synopsis createuser [connection-option...] [option...] [username]createuser
createuser --bypassrls--bypassrls
The new user will bypass every row-level security (RLS) policy.createuser › Options
createuser --connection-limit=number-c number--connection-limit=number
Set a maximum number of connections for the new user. The default is to set no limit.createuser › Options
createuser --createdb-d--createdb
The new user will be allowed to create databases.createuser › Options
createuser --createrole-r--createrole
The new user will be allowed to create, alter, drop, comment on, change the security label for other roles; that is, this user will have CREATEROLE privilege. See role creatio…createuser › Options
createuser --echo-e--echo
Echo the commands that createuser generates and sends to the server.createuser › Options
createuser --encrypted-E--encrypted
This option is obsolete but still accepted for backward compatibility.createuser › Options
createuser --help-?--help
Show help about createuser command line arguments, and exit.createuser › Options
createuser --host=host-h host--host=host
Specifies the host name of the machine on which the server is running. If the value begins with a slash, it is used as the directory for the Unix domain socket.createuser › Options
createuser --inherit-i--inherit
The new role will automatically inherit privileges of roles it is a member of. This is the default.createuser › Options
createuser --interactive--interactive
Prompt for the user name if none is specified on the command line, and also prompt for whichever of the options -d/-D, -r/-R, -s/-S is not specified on the command line. (This …createuser › Options
createuser --login-l--login
The new user will be allowed to log in (that is, the user name can be used as the initial session user identifier). This is the default.createuser › Options
More results
Find definitions in the PostgreSQL manuals, reference library, and extension catalogue.
pg17: choose a version ex: extensions only ↑↓ select ↵ open