Ask a Question
Report a Bug
This page in other versions:
Warning: This documentation is for a pre-release version of pgAdmin 4
Use the Database dialog to define or modify a database. To create a database,
you must be a database superuser or have the CREATE privilege.
The Database dialog organizes the development of a database through the
following dialog tabs: General, Definition, Security, and Parameters.
The SQL tab displays the SQL code generated by dialog selections.
Use the fields in the General tab to identify the database:
Click the Definition tab to continue.
Use the Definition tab to set properties for the database:
Click the Security tab to continue.
Use the Security tab to assign privileges and define security labels.
Use the Privileges panel to assign privileges to a role. Click the Add icon
(+) to set privileges for database objects:
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 Delete Row popup.
Use the Security Labels panel to define security labels applied to the
database. Click the Add icon (+) to add each security label selection:
To discard a security label, click the trash icon to the left of the row and
confirm deletion in the Delete Row popup.
Click the Parameters tab to continue.
Use the Parameters tab to set parameters for the database. Click the Add
icon (+) to add each parameter:
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 Delete Row popup.
Click the SQL tab to continue.
Your entries in the Database dialog generate a SQL command (see an example
below). Use the SQL tab for review; revisit or switch tabs to make any changes
to the SQL command.
The following is an example of the sql command generated by user selections in
the Database dialog:
The example creates a database named hr that is owned by postgres. It
allows unlimited connections, and is available to all authenticated users.