mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-07-29 15:53:54 -05:00
Various doc updates.
This commit is contained in:
@@ -1,22 +1,20 @@
|
||||
*************
|
||||
Schema Dialog
|
||||
*************
|
||||
.. _schema:
|
||||
|
||||
Use the *Schema* dialog to define a schema. A schema is the organizational workhorse of a database, similar to directories or namespaces. To create a schema, you must be a database superuser or have the CREATE privilege.
|
||||
*****************
|
||||
The Schema Dialog
|
||||
*****************
|
||||
|
||||
The *Schema* dialog allows you to implement options of the CREATE SCHEMA command. For more information about the CREATE SCHEMA command, please see:
|
||||
Use the *Schema* dialog to define a schema. A schema is the organizational workhorse of a database, similar to directories or namespaces. To create a schema, you must be a database superuser or have the CREATE privilege.
|
||||
|
||||
http://www.postgresql.org/docs/current/static/sql-createschema.html
|
||||
|
||||
The *Schema* dialog organizes the development of schema through the following dialog tabs: *General* and *Security*. The *SQL* tab displays the SQL code generated by dialog selections.
|
||||
The *Schema* dialog organizes the development of schema through the following dialog tabs: *General* and *Security*. The *SQL* tab displays the SQL code generated by dialog selections.
|
||||
|
||||
.. image:: images/schema_general.png
|
||||
|
||||
Use the fields on the *General* tab to identify the schema.
|
||||
|
||||
* Use the *Name* field to add a descriptive name for the schema.
|
||||
* Use the *Name* field to add a descriptive name for the schema. The name will be displayed in the *pgAdmin* tree control.
|
||||
* Select the owner of the schema from the drop-down listbox in the *Owner* field.
|
||||
* Store notes about the schema in the *Comments* field.
|
||||
* Store notes about the schema in the *Comment* field.
|
||||
|
||||
Click the *Security* tab to continue.
|
||||
|
||||
@@ -30,32 +28,31 @@ Click *Add* to assign a set of privileges in the *Privileges* panel:
|
||||
* Click inside the *Privileges* field. Check the boxes to the left of one or more privileges to grant the selected privileges to the specified user.
|
||||
* Select the name of the role that is granting the privilege from the drop-down listbox in the *Grantor* field. The default grantor is the owner of the schema.
|
||||
|
||||
To discard a privilege, click the trash icon to the left of the row and confirm deletion in the *Delete Row* popup.
|
||||
Click add to assign additional sets of privileges; to discard a privilege, click the trash icon to the left of the row and confirm deletion in the *Delete Row* popup.
|
||||
|
||||
Click *Add* to assign a security label in the *Security Labels* panel:
|
||||
|
||||
* Specify a security label provider in the *Provider* field. The named provider must be loaded and must consent to the proposed labeling operation.
|
||||
* Specify a a security label in the *Security Label* 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.
|
||||
|
||||
To discard a security label, click the trash icon to the left of the row and confirm deletion in the *Delete Row* popup.
|
||||
Click *Add* to assign additional security labels; 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 *SQL* tab to continue.
|
||||
|
||||
Your entries in the *Schema* 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.
|
||||
|
||||
**Example**
|
||||
|
||||
The following is an example of the sql command generated by selections made in the *Schema* dialog:
|
||||
|
||||
.. image:: images/schema_sql.png
|
||||
|
||||
Your entries in the *Schema* dialog generate a SQL command; you can review the command on the *SQL* pane.
|
||||
The example creates a schema named hr; the command grants *USAGE* privileges to *public*.
|
||||
|
||||
* Click the *Info* button (i) to access online help.
|
||||
* Click the *Info* button (i) to access online help. View context-sensitive help in the *Tabbed browser*, where a new tab displays the PostgreSQL core documentation.
|
||||
* Click the *Save* button to save work.
|
||||
* Click the *Cancel* button to exit without saving work.
|
||||
* Click the *Reset* button to restore configuration parameters.
|
||||
|
||||
Example
|
||||
=======
|
||||
|
||||
The following is an example of the sql command generated by selections made in the *Schema dialog*:
|
||||
|
||||
.. image:: images/schema_sql_example.png
|
||||
|
||||
The example creates a schema named hr; the command grants *USAGE* privileges to *public*.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user