|
|
|
|
| <!DOCTYPE html>
|
|
|
| <html lang="en" data-content_root="./">
|
| <head>
|
| <meta charset="utf-8" />
|
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
| <title>Database Dialog — pgAdmin 4 8.6 documentation</title>
|
| <link rel="stylesheet" type="text/css" href="_static/pygments.css?v=fa44fd50" />
|
| <link rel="stylesheet" type="text/css" href="_static/style.css?v=d36593c3" />
|
|
|
| <script src="_static/documentation_options.js?v=d4c83366"></script>
|
| <script src="_static/doctools.js?v=9a2dae69"></script>
|
| <script src="_static/sphinx_highlight.js?v=dc90522c"></script>
|
|
|
| <script src="_static/sidebar.js"></script>
|
|
|
| <link rel="index" title="Index" href="genindex.html" />
|
| <link rel="search" title="Search" href="search.html" />
|
| <link rel="next" title="Resource Group Dialog" href="resource_group_dialog.html" />
|
| <link rel="prev" title="Managing Cluster Objects" href="managing_cluster_objects.html" />
|
| </head><body>
|
| <div class="related" role="navigation" aria-label="related navigation">
|
| <h3>Navigation</h3>
|
| <ul>
|
| <li class="right" style="margin-right: 10px">
|
| <a href="genindex.html" title="General Index"
|
| accesskey="I">index</a></li>
|
| <li class="right" >
|
| <a href="resource_group_dialog.html" title="Resource Group Dialog"
|
| accesskey="N">next</a> |</li>
|
| <li class="right" >
|
| <a href="managing_cluster_objects.html" title="Managing Cluster Objects"
|
| accesskey="P">previous</a> |</li>
|
| <li class="nav-item nav-item-0"><a href="index.html">pgAdmin 4 8.6 documentation</a> »</li>
|
| <li class="nav-item nav-item-1"><a href="managing_cluster_objects.html" accesskey="U">Managing Cluster Objects</a> »</li>
|
| <li class="nav-item nav-item-this"><a href="">Database Dialog</a></li>
|
| </ul>
|
| </div>
|
|
|
| <div class="document">
|
| <div class="documentwrapper">
|
| <div class="bodywrapper">
|
| <div class="body" role="main">
|
|
|
| <section id="database-dialog">
|
| <span id="id1"></span><h1><span class="target" id="index-0"></span>Database Dialog<a class="headerlink" href="#database-dialog" title="Link to this heading">¶</a></h1>
|
| <p>Use the <em>Database</em> dialog to define or modify a database. To create a database,
|
| you must be a database superuser or have the CREATE privilege.</p>
|
| <p>The <em>Database</em> dialog organizes the development of a database through the
|
| following dialog tabs: <em>General</em>, <em>Definition</em>, <em>Security</em>, and <em>Parameters</em>.
|
| The <em>SQL</em> tab displays the SQL code generated by dialog selections.</p>
|
| <img alt="Database dialog general tab" class="align-center" src="_images/database_general.png" />
|
| <p>Use the fields in the <em>General</em> tab to identify the database:</p>
|
| <ul class="simple">
|
| <li><p>Use the <em>Database</em> field to add a descriptive name for the database. The name
|
| will be displayed in the <em>pgAdmin</em> tree control.</p></li>
|
| <li><p>Use the <em>OID</em> field to specify the object identifier to be used for the new
|
| database. Users can specify the value greater than 16383. This option is available
|
| from v15 and above.</p></li>
|
| <li><p>Select the owner of the database from the drop-down listbox in the <em>Owner</em>
|
| field.</p></li>
|
| <li><p>Store notes about the database in the <em>Comment</em> field.</p></li>
|
| </ul>
|
| <p>Click the <em>Definition</em> tab to continue.</p>
|
| <img alt="Database dialog definition tab" class="align-center" src="_images/database_definition.png" />
|
| <p>Use the <em>Definition</em> tab to set properties for the database:</p>
|
| <ul class="simple">
|
| <li><p>Select a character set from the drop-down listbox in the <em>Encoding</em> field.
|
| The default is <em>UTF8</em>.</p></li>
|
| <li><p>Select a template from the drop-down listbox in the <em>Template</em> field. If you
|
| do not specify a template, the database will use template1.</p></li>
|
| <li><p>Select a tablespace from the drop-down listbox in the <em>Tablespace</em> field. The
|
| selected tablespace will be the default tablespace used to contain database
|
| objects.</p></li>
|
| <li><p>Select the strategy from the drop-down listbox in the <em>Strategy</em> field while
|
| creating a new database. This option is available from v15 and above.</p></li>
|
| <li><p>Select the locale provider from the drop-down listbox in the <em>Locale Provider</em>
|
| field to set the default collation for this database. Possible values are: icu, libc.
|
| This option is available from v15 and above.</p></li>
|
| <li><p>Select the collation order from the drop-down listbox in the <em>Collation</em> field.</p></li>
|
| <li><p>Select the character classification from the drop-down listbox in the
|
| <em>Character Type</em> field. This affects the categorization of characters, e.g.
|
| lower, upper and digit. The default, or a blank field, uses the character
|
| classification of the template database.</p></li>
|
| <li><p>Select the icu locale from the drop-down listbox in the <em>ICU Locale</em> to
|
| specifies the ICU locale ID if the ICU locale provider is used.
|
| This option is available from v15 and above.</p></li>
|
| <li><p>Specify the icu rules in the <em>ICU Rules</em> field as additional collation
|
| rules to customize the behavior of the default collation of this database.
|
| This option is available from v16 and above.</p></li>
|
| <li><p>Specify a connection limit in the <em>Connection Limit</em> field to configure the
|
| maximum number of connection requests. The default value (<em>-1</em>) allows
|
| unlimited connections to the database.</p></li>
|
| <li><p>If the <em>templates?</em> is set to true, then database will be a template database.</p></li>
|
| </ul>
|
| <p>Click the <em>Security</em> tab to continue.</p>
|
| <img alt="Database dialog security tab" class="align-center" src="_images/database_security.png" />
|
| <p>Use the <em>Security</em> tab to assign privileges and define security labels.</p>
|
| <p>Use the <em>Privileges</em> panel to assign privileges to a role. Click the <em>Add</em> icon
|
| (+) to set privileges for database objects:</p>
|
| <ul class="simple">
|
| <li><p>Select the name of the role from the drop-down listbox in the <em>Grantee</em> field.</p></li>
|
| <li><p>Click inside the <em>Privileges</em> field. Check the boxes to the left of one or
|
| more privileges to grant the selected privilege to the specified user.</p></li>
|
| <li><p>The current user, who is the default grantor for granting the privilege, is displayed in the <em>Grantor</em> field.</p></li>
|
| </ul>
|
| <p>Click add to set additional privileges; to discard a privilege, click the trash
|
| icon to the left of the row and confirm deletion in the <em>Delete Row</em> popup.</p>
|
| <p>Use the <em>Security Labels</em> panel to define security labels applied to the
|
| database. Click the <em>Add</em> icon (+) to add each security label selection:</p>
|
| <ul class="simple">
|
| <li><p>Specify a security label provider in the <em>Provider</em> field. The named provider
|
| must be loaded and must consent to the proposed labeling operation.</p></li>
|
| <li><p>Specify a a security label in the <em>Security Label</em> field. The meaning of a
|
| given label is at the discretion of the label provider. PostgreSQL places no
|
| restrictions on whether or how a label provider must interpret security
|
| labels; it merely provides a mechanism for storing them.</p></li>
|
| </ul>
|
| <p>To discard a security label, click the trash icon to the left of the row and
|
| confirm deletion in the <em>Delete Row</em> popup.</p>
|
| <p>Click the <em>Parameters</em> tab to continue.</p>
|
| <img alt="Database dialog parameters tab" class="align-center" src="_images/database_parameters.png" />
|
| <p>Use the <em>Parameters</em> tab to set parameters for the database. Click the <em>Add</em>
|
| icon (+) to add each parameter:</p>
|
| <ul class="simple">
|
| <li><p>Use the drop-down listbox in the <em>Name</em> field to select a parameter.</p></li>
|
| <li><p>Use the <em>Value</em> field to set a value for the parameter.</p></li>
|
| <li><p>Use the drop-down listbox next to <em>Role</em> to select a role to which the
|
| parameter setting specified will apply.</p></li>
|
| </ul>
|
| <p>Follow these steps to add additional parameter value definitions; to discard a
|
| parameter, click the trash icon to the left of the row and confirm deletion in
|
| the <em>Delete Row</em> popup.</p>
|
| <p>Click the <em>Advanced</em> tab to continue.</p>
|
| <img alt="Database dialog advanced tab" class="align-center" src="_images/database_advanced.png" />
|
| <p>Use the <em>Advanced</em> tab to set advanced parameters for the database.</p>
|
| <ul class="simple">
|
| <li><p>Use <em>Schema restriction</em> field to provide a SQL restriction that will be used
|
| against the pg_namespace table to limit the schemas that you see.
|
| For example, you might enter: <em>public</em> so that only <em>public</em> are shown in
|
| the pgAdmin browser.Separate entries with a comma or tab as you type.</p></li>
|
| </ul>
|
| <p>Click the <em>SQL</em> tab to continue.</p>
|
| <p>Your entries in the <em>Database</em> dialog generate a SQL command (see an example
|
| below). Use the <em>SQL</em> tab for review; revisit or switch tabs to make any changes
|
| to the SQL command.</p>
|
| <section id="example">
|
| <h2>Example<a class="headerlink" href="#example" title="Link to this heading">¶</a></h2>
|
| <p>The following is an example of the sql command generated by user selections in
|
| the <em>Database</em> dialog:</p>
|
| <img alt="Database dialog sql tab" class="align-center" src="_images/database_sql.png" />
|
| <p>The example creates a database named <em>hr</em> that is owned by <em>postgres</em>. It
|
| allows unlimited connections, and is available to all authenticated users.</p>
|
| <ul class="simple">
|
| <li><p>Click the <em>Info</em> button (i) to access online help.</p></li>
|
| <li><p>Click the <em>Save</em> button to save work.</p></li>
|
| <li><p>Click the <em>Close</em> button to exit without saving work.</p></li>
|
| <li><p>Click the <em>Reset</em> button to restore configuration parameters.</p></li>
|
| </ul>
|
| </section>
|
| </section>
|
|
|
|
|
| <div class="clearer"></div>
|
| </div>
|
| </div>
|
| </div>
|
| <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
| <div class="sphinxsidebarwrapper">
|
| <div>
|
| <h3><a href="index.html">Table of Contents</a></h3>
|
| <ul>
|
| <li><a class="reference internal" href="#">Database Dialog</a><ul>
|
| <li><a class="reference internal" href="#example">Example</a></li>
|
| </ul>
|
| </li>
|
| </ul>
|
|
|
| </div>
|
| <h3><a href="index.html">Table of Contents</a></h3>
|
| <ul class="current">
|
| <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="external_database.html">External database for pgAdmin user settings</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="connecting.html">Connecting To A Server</a></li>
|
| <li class="toctree-l1 current"><a class="reference internal" href="managing_cluster_objects.html">Managing Cluster Objects</a><ul class="current">
|
| <li class="toctree-l2 current"><a class="current reference internal" href="#">Database Dialog</a></li>
|
| <li class="toctree-l2"><a class="reference internal" href="resource_group_dialog.html">Resource Group Dialog</a></li>
|
| <li class="toctree-l2"><a class="reference internal" href="role_dialog.html">Login/Group Role Dialog</a></li>
|
| <li class="toctree-l2"><a class="reference internal" href="tablespace_dialog.html">Tablespace Dialog</a></li>
|
| <li class="toctree-l2"><a class="reference internal" href="replica_nodes_dialog.html">Replica Node Dialog</a></li>
|
| <li class="toctree-l2"><a class="reference internal" href="role_reassign_dialog.html">Role Reassign/Drop Own Dialog</a></li>
|
| </ul>
|
| </li>
|
| <li class="toctree-l1"><a class="reference internal" href="managing_database_objects.html">Managing Database Objects</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="modifying_tables.html">Creating or Modifying a Table</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="management_basics.html">Management Basics</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="backup_and_restore.html">Backup and Restore</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="developer_tools.html">Developer Tools</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="processes.html">Processes</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="pgagent.html">pgAgent</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="contributions.html">pgAdmin Project Contributions</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="release_notes.html">Release Notes</a></li>
|
| <li class="toctree-l1"><a class="reference internal" href="licence.html">Licence</a></li>
|
| </ul>
|
|
|
| <search id="searchbox" style="display: none" role="search">
|
| <h3 id="searchlabel">Quick search</h3>
|
| <div class="searchformwrapper">
|
| <form class="search" action="search.html" method="get">
|
| <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
|
| <input type="submit" value="Go" />
|
| </form>
|
| </div>
|
| </search>
|
| <script>document.getElementById('searchbox').style.display = "block"</script>
|
| </div>
|
| <div id="sidebarbutton" title="Collapse sidebar">
|
| <span>«</span>
|
| </div>
|
|
|
| </div>
|
| <div class="clearer"></div>
|
| </div>
|
| <div class="related" role="navigation" aria-label="related navigation">
|
| <h3>Navigation</h3>
|
| <ul>
|
| <li class="right" style="margin-right: 10px">
|
| <a href="genindex.html" title="General Index"
|
| >index</a></li>
|
| <li class="right" >
|
| <a href="resource_group_dialog.html" title="Resource Group Dialog"
|
| >next</a> |</li>
|
| <li class="right" >
|
| <a href="managing_cluster_objects.html" title="Managing Cluster Objects"
|
| >previous</a> |</li>
|
| <li class="nav-item nav-item-0"><a href="index.html">pgAdmin 4 8.6 documentation</a> »</li>
|
| <li class="nav-item nav-item-1"><a href="managing_cluster_objects.html" >Managing Cluster Objects</a> »</li>
|
| <li class="nav-item nav-item-this"><a href="">Database Dialog</a></li>
|
| </ul>
|
| </div>
|
| <div class="footer" role="contentinfo">
|
| <div class="related" role="navigation" aria-label="related navigation">
|
| <ul>
|
| <li class="left" style="margin-left: 10px">© Copyright (C) 2013 - 2024, The pgAdmin Development Team.</li>
|
| <li class="right" style="margin-right: 10px"><a href="genindex.html" title="General Index" accesskey="I">index</a></li>
|
| <li class="right" ><a href="resource_group_dialog.html" title="Resource Group Dialog" accesskey="N">next</a> |</li>
|
| <li class="right" ><a href="managing_cluster_objects.html" title="Managing Cluster Objects" accesskey="P">previous</a> |</li>
|
| </ul>
|
| </div>
|
| </div>
|
| </body>
|
| </html> |