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 Tablespace dialog to define a tablespace. A tablespace allows
superusers to define an alternative location on the file system where the data
files containing database objects (such as tables and indexes) reside.
Tablespaces are only supported on systems that support symbolic links. Note that
a tablespace cannot be used independently of the cluster in which it is defined.
The Tablespace dialog organizes the definition of a tablespace through the
following tabs: General, Definition, Parameters, and Security. The SQL
tab displays the SQL code generated by dialog selections.
Click the Definition tab to continue.
Click the Parameters tab to continue.
Use the Parameters tab to set parameters for the tablespace. Click the Add
icon (+) to add a row to the table below.
Click the Add icon (+) to specify each additional parameter; to discard a
parameter, click the trash icon to the left of the row and confirm deletion in
the Delete Row dialog.
Click the Security tab to continue.
Use the Security tab to assign privileges and define security labels for the
Use the Privileges panel to assign security privileges. Click the Add icon
(+) to assign a set of privileges:
Click the Add icon 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.
Use the Security Labels panel to define security labels applied to the
tablespace. 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 SQL tab to continue.
Your entries in the Tablespace 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 Tablespace dialog:
The example shown demonstrates creating a tablespace named space_01. It has a
random_page_cost value equal to 1.