![]() However, createdb will waste a connection attempt finding out that the server wants a password. This option is never essential, since createdb will automatically prompt for a password if the server demands password authentication. Wįorce createdb to prompt for a password before connecting to a database. This option can be useful in batch jobs and scripts where no user is present to enter a password. pgpass file, the connection attempt will fail. If the server requires password authentication and a password is not available by other means such as a. Specifies the TCP port or the local Unix domain socket file extension on which the server is listening for connections. ![]() If the value begins with a slash, it is used as the directory for the Unix domain socket. Specifies the host name of the machine on which the server is running. The options -D, -l, -E, -O, and -T correspond to options of the underlying SQL command CREATE DATABASE see there for more information about them.Ĭreatedb also accepts the following command-line arguments for connection parameters: Show help about createdb command line arguments, and exit. (This name is processed as a double-quoted identifier.) -V Specifies the template database from which to build this database. See CREATE DATABASE STRATEGY for more details. Specifies the database creation strategy. (This name is processed as a double-quoted identifier.) -S template Specifies the database user who will own the new database. Specifies the locale provider for the database's default collation. Specifies the ICU locale ID to be used in this database, if the ICU locale provider is selected. Specifies the LC_CTYPE setting to be used in this database. Specifies the LC_COLLATE setting to be used in this database. This is equivalent to specifying both -lc-collate and -lc-ctype. ![]() ![]() Specifies the locale to be used in this database. The character sets supported by the PostgreSQL server are described in Section 24.3.1. Specifies the character encoding scheme to be used in this database. (This name is processed as a double-quoted identifier.) -eĮcho the commands that createdb generates and sends to the server. Specifies the default tablespace for the database. Specifies a comment to be associated with the newly created database. The default is to create a database with the same name as the current system user. The name must be unique among all PostgreSQL databases in this cluster. Specifies the name of the database to be created. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |