Home Explore Blog CI



postgresql

3rd chunk of `doc/src/sgml/ref/createdb.sgml`
8e835eb6a32cb3e63f86bad27817a0b54225a758e91f6f2b0000000100000fa0
 <term><option>--locale-provider={<literal>builtin</literal>|<literal>libc</literal>|<literal>icu</literal>}</option></term>
      <listitem>
       <para>
        Specifies the locale provider for the database's default collation.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-O <replaceable class="parameter">owner</replaceable></option></term>
      <term><option>--owner=<replaceable class="parameter">owner</replaceable></option></term>
      <listitem>
       <para>
        Specifies the database user who will own the new database.
        (This name is processed as a double-quoted identifier.)
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-S <replaceable class="parameter">strategy</replaceable></option></term>
      <term><option>--strategy=<replaceable class="parameter">strategy</replaceable></option></term>
      <listitem>
       <para>
        Specifies the database creation strategy.  See
        <xref linkend="create-database-strategy" /> for more details.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-T <replaceable class="parameter">template</replaceable></option></term>
      <term><option>--template=<replaceable class="parameter">template</replaceable></option></term>
      <listitem>
       <para>
        Specifies the template database from which to build this
        database.  (This name is processed as a double-quoted identifier.)
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
       <term><option>-V</option></term>
       <term><option>--version</option></term>
       <listitem>
       <para>
       Print the <application>createdb</application> version and exit.
       </para>
       </listitem>
     </varlistentry>

    <varlistentry>
      <term><option>-?</option></term>
      <term><option>--help</option></term>
      <listitem>
      <para>
      Show help about <application>createdb</application> command line
      arguments, and exit.
      </para>
      </listitem>
    </varlistentry>

    </variablelist>
   </para>

   <para>
    The options <option>-D</option>, <option>-l</option>, <option>-E</option>,
    <option>-O</option>, and
    <option>-T</option> correspond to options of the underlying
    SQL command <link linkend="sql-createdatabase"><command>CREATE DATABASE</command></link>; see there for more information
    about them.
   </para>

   <para>
    <application>createdb</application> also accepts the following
    command-line arguments for connection parameters:

    <variablelist>
     <varlistentry>
      <term><option>-h <replaceable class="parameter">host</replaceable></option></term>
      <term><option>--host=<replaceable class="parameter">host</replaceable></option></term>
      <listitem>
       <para>
        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.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-p <replaceable class="parameter">port</replaceable></option></term>
      <term><option>--port=<replaceable class="parameter">port</replaceable></option></term>
      <listitem>
       <para>
        Specifies the TCP port or the local Unix domain socket file
        extension on which the server is listening for connections.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-U <replaceable class="parameter">username</replaceable></option></term>
      <term><option>--username=<replaceable class="parameter">username</replaceable></option></term>
      <listitem>
       <para>
        User name to connect as.
       </para>
      </listitem>
     </varlistentry>

     <varlistentry>
      <term><option>-w</option></term>
      <term><option>--no-password</option></term>
      <listitem>
   

Title: createdb Options: Locale Provider, Owner, Strategy, Template, Version, Help, and Connection Parameters
Summary
This section outlines the remaining command-line options for `createdb`, including specifying the locale provider, database owner, creation strategy, template database, displaying the version and help information. It also details connection parameters like host, port, and username to connect to the PostgreSQL server.