Skip to content

Commit

Permalink
[DOCS] removed SET TABLESPACE (#5998)
Browse files Browse the repository at this point in the history
* removed SET TABLESPACE on ALTER DATABASE
* removed tablespace_name on CREATE DATABASE
  • Loading branch information
ddorian committed Oct 13, 2020
1 parent 5723c22 commit c397ce0
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 14 deletions.
4 changes: 0 additions & 4 deletions docs/content/latest/api/ysql/commands/ddl_alter_db.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ Some options in DATABASE are under development.

Specify the name of the database to be altered.

### *tablespace_name*

Specify the new tablespace that is associated with the database.

### ALLOW_CONNECTIONS

Specify `false` to disallow connections to this database. Default is `true`, which allows this database to be cloned by any user with `CREATEDB` privileges.
Expand Down
4 changes: 0 additions & 4 deletions docs/content/latest/api/ysql/commands/ddl_create_database.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,6 @@ Specify the collation order (`LC_COLLATE`).

Specify the character classification (`LC_CTYPE`).

### TABLESPACE *tablespace_name*

Specify the new tablespace that is associated with the database.

### ALLOW_CONNECTIONS *allowconn*

Specify `false` to disallow connections to the database. Default is `true`, which allows connections to the database.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#### alter_database

<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="728" height="370" viewbox="0 0 728 370"><path class="connector" d="M0 37h15m58 0h10m84 0h10m54 0h50m53 0h20m-88 0q5 0 5 5v8q0 5 5 5h63q5 0 5-5v-8q0-5 5-5m5 0h30m-5 0q-5 0-5-5v-17q0-5 5-5h163q5 0 5 5v17q0 5-5 5m-5 0h176m-462 40q0 5 5 5h5m71 0h10m36 0h10m54 0h256q5 0 5-5m-452 30q0 5 5 5h5m66 0h10m36 0h30m90 0h48m-148 25q0 5 5 5h5m118 0h5q5 0 5-5m-143-25q5 0 5 5v50q0 5 5 5h5m116 0h7q5 0 5-5v-50q0-5 5-5m5 0h157q5 0 5-5m-452 90q0 5 5 5h5m43 0h10m97 0h10m115 0h162q5 0 5-5m-452 30q0 5 5 5h5m43 0h10m168 0h30m36 0h20m-71 0q5 0 5 5v20q0 5 5 5h5m30 0h11q5 0 5-5v-20q0-5 5-5m5 0h30m52 0h43m-110 0q5 0 5 5v20q0 5 5 5h5m75 0h5q5 0 5-5v-20q0-5 5-5m5 0h5q5 0 5-5m-452 60q0 5 5 5h5m43 0h10m168 0h10m54 0h10m77 0h65q5 0 5-5m-452 30q0 5 5 5h5m59 0h10m168 0h200q5 0 5-5m-452 30q0 5 5 5h5m59 0h10m42 0h326q5 0 5-5m-457-310q5 0 5 5v318q0 5 5 5h442q5 0 5-5v-318q0-5 5-5m5 0h15"/><polygon points="0,44 5,37 0,30" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="20" width="58" height="25" rx="7"/><text class="text" x="25" y="37">ALTER</text><rect class="literal" x="83" y="20" width="84" height="25" rx="7"/><text class="text" x="93" y="37">DATABASE</text><a xlink:href="../../syntax_resources/grammar_diagrams#name"><rect class="rule" x="177" y="20" width="54" height="25"/><text class="text" x="187" y="37">name</text></a><rect class="literal" x="281" y="20" width="53" height="25" rx="7"/><text class="text" x="291" y="37">WITH</text><a xlink:href="#alter-database-option"><rect class="rule" x="384" y="20" width="153" height="25"/><text class="text" x="394" y="37">alter_database_option</text></a><rect class="literal" x="261" y="65" width="71" height="25" rx="7"/><text class="text" x="271" y="82">RENAME</text><rect class="literal" x="342" y="65" width="36" height="25" rx="7"/><text class="text" x="352" y="82">TO</text><a xlink:href="../../syntax_resources/grammar_diagrams#name"><rect class="rule" x="388" y="65" width="54" height="25"/><text class="text" x="398" y="82">name</text></a><rect class="literal" x="261" y="95" width="66" height="25" rx="7"/><text class="text" x="271" y="112">OWNER</text><rect class="literal" x="337" y="95" width="36" height="25" rx="7"/><text class="text" x="347" y="112">TO</text><a xlink:href="../../syntax_resources/grammar_diagrams#new-owner"><rect class="rule" x="403" y="95" width="90" height="25"/><text class="text" x="413" y="112">new_owner</text></a><rect class="literal" x="403" y="125" width="118" height="25" rx="7"/><text class="text" x="413" y="142">CURRENT_USER</text><rect class="literal" x="403" y="155" width="116" height="25" rx="7"/><text class="text" x="413" y="172">SESSION_USER</text><rect class="literal" x="261" y="185" width="43" height="25" rx="7"/><text class="text" x="271" y="202">SET</text><rect class="literal" x="314" y="185" width="97" height="25" rx="7"/><text class="text" x="324" y="202">TABLESPACE</text><a xlink:href="../../syntax_resources/grammar_diagrams#new-tablespace"><rect class="rule" x="421" y="185" width="115" height="25"/><text class="text" x="431" y="202">new_tablespace</text></a><rect class="literal" x="261" y="215" width="43" height="25" rx="7"/><text class="text" x="271" y="232">SET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="314" y="215" width="168" height="25"/><text class="text" x="324" y="232">configuration_parameter</text></a><rect class="literal" x="512" y="215" width="36" height="25" rx="7"/><text class="text" x="522" y="232">TO</text><rect class="literal" x="512" y="245" width="30" height="25" rx="7"/><text class="text" x="522" y="262">=</text><a xlink:href="../../syntax_resources/grammar_diagrams#value"><rect class="rule" x="598" y="215" width="52" height="25"/><text class="text" x="608" y="232">value</text></a><rect class="literal" x="598" y="245" width="75" height="25" rx="7"/><text class="text" x="608" y="262">DEFAULT</text><rect class="literal" x="261" y="275" width="43" height="25" rx="7"/><text class="text" x="271" y="292">SET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="314" y="275" width="168" height="25"/><text class="text" x="324" y="292">configuration_parameter</text></a><rect class="literal" x="492" y="275" width="54" height="25" rx="7"/><text class="text" x="502" y="292">FROM</text><rect class="literal" x="556" y="275" width="77" height="25" rx="7"/><text class="text" x="566" y="292">CURRENT</text><rect class="literal" x="261" y="305" width="59" height="25" rx="7"/><text class="text" x="271" y="322">RESET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="330" y="305" width="168" height="25"/><text class="text" x="340" y="322">configuration_parameter</text></a><rect class="literal" x="261" y="335" width="59" height="25" rx="7"/><text class="text" x="271" y="352">RESET</text><rect class="literal" x="330" y="335" width="42" height="25" rx="7"/><text class="text" x="340" y="352">ALL</text><polygon points="724,44 728,44 728,30 724,30" style="fill:black;stroke-width:0"/></svg>
<svg class="rrdiagram" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" width="728" height="340" viewbox="0 0 728 340"><path class="connector" d="M0 37h15m58 0h10m84 0h10m54 0h50m53 0h20m-88 0q5 0 5 5v8q0 5 5 5h63q5 0 5-5v-8q0-5 5-5m5 0h30m-5 0q-5 0-5-5v-17q0-5 5-5h163q5 0 5 5v17q0 5-5 5m-5 0h176m-462 40q0 5 5 5h5m71 0h10m36 0h10m54 0h256q5 0 5-5m-452 30q0 5 5 5h5m66 0h10m36 0h30m90 0h48m-148 25q0 5 5 5h5m118 0h5q5 0 5-5m-143-25q5 0 5 5v50q0 5 5 5h5m116 0h7q5 0 5-5v-50q0-5 5-5m5 0h157q5 0 5-5m-452 90q0 5 5 5h5m43 0h10m168 0h30m36 0h20m-71 0q5 0 5 5v20q0 5 5 5h5m30 0h11q5 0 5-5v-20q0-5 5-5m5 0h30m52 0h43m-110 0q5 0 5 5v20q0 5 5 5h5m75 0h5q5 0 5-5v-20q0-5 5-5m5 0h5q5 0 5-5m-452 60q0 5 5 5h5m43 0h10m168 0h10m54 0h10m77 0h65q5 0 5-5m-452 30q0 5 5 5h5m59 0h10m168 0h200q5 0 5-5m-452 30q0 5 5 5h5m59 0h10m42 0h326q5 0 5-5m-457-280q5 0 5 5v288q0 5 5 5h442q5 0 5-5v-288q0-5 5-5m5 0h15"/><polygon points="0,44 5,37 0,30" style="fill:black;stroke-width:0"/><rect class="literal" x="15" y="20" width="58" height="25" rx="7"/><text class="text" x="25" y="37">ALTER</text><rect class="literal" x="83" y="20" width="84" height="25" rx="7"/><text class="text" x="93" y="37">DATABASE</text><a xlink:href="../../syntax_resources/grammar_diagrams#name"><rect class="rule" x="177" y="20" width="54" height="25"/><text class="text" x="187" y="37">name</text></a><rect class="literal" x="281" y="20" width="53" height="25" rx="7"/><text class="text" x="291" y="37">WITH</text><a xlink:href="#alter-database-option"><rect class="rule" x="384" y="20" width="153" height="25"/><text class="text" x="394" y="37">alter_database_option</text></a><rect class="literal" x="261" y="65" width="71" height="25" rx="7"/><text class="text" x="271" y="82">RENAME</text><rect class="literal" x="342" y="65" width="36" height="25" rx="7"/><text class="text" x="352" y="82">TO</text><a xlink:href="../../syntax_resources/grammar_diagrams#name"><rect class="rule" x="388" y="65" width="54" height="25"/><text class="text" x="398" y="82">name</text></a><rect class="literal" x="261" y="95" width="66" height="25" rx="7"/><text class="text" x="271" y="112">OWNER</text><rect class="literal" x="337" y="95" width="36" height="25" rx="7"/><text class="text" x="347" y="112">TO</text><a xlink:href="../../syntax_resources/grammar_diagrams#new-owner"><rect class="rule" x="403" y="95" width="90" height="25"/><text class="text" x="413" y="112">new_owner</text></a><rect class="literal" x="403" y="125" width="118" height="25" rx="7"/><text class="text" x="413" y="142">CURRENT_USER</text><rect class="literal" x="403" y="155" width="116" height="25" rx="7"/><text class="text" x="413" y="172">SESSION_USER</text><rect class="literal" x="261" y="185" width="43" height="25" rx="7"/><text class="text" x="271" y="202">SET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="314" y="185" width="168" height="25"/><text class="text" x="324" y="202">configuration_parameter</text></a><rect class="literal" x="512" y="185" width="36" height="25" rx="7"/><text class="text" x="522" y="202">TO</text><rect class="literal" x="512" y="215" width="30" height="25" rx="7"/><text class="text" x="522" y="232">=</text><a xlink:href="../../syntax_resources/grammar_diagrams#value"><rect class="rule" x="598" y="185" width="52" height="25"/><text class="text" x="608" y="202">value</text></a><rect class="literal" x="598" y="215" width="75" height="25" rx="7"/><text class="text" x="608" y="232">DEFAULT</text><rect class="literal" x="261" y="245" width="43" height="25" rx="7"/><text class="text" x="271" y="262">SET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="314" y="245" width="168" height="25"/><text class="text" x="324" y="262">configuration_parameter</text></a><rect class="literal" x="492" y="245" width="54" height="25" rx="7"/><text class="text" x="502" y="262">FROM</text><rect class="literal" x="556" y="245" width="77" height="25" rx="7"/><text class="text" x="566" y="262">CURRENT</text><rect class="literal" x="261" y="275" width="59" height="25" rx="7"/><text class="text" x="271" y="292">RESET</text><a xlink:href="../../syntax_resources/grammar_diagrams#configuration-parameter"><rect class="rule" x="330" y="275" width="168" height="25"/><text class="text" x="340" y="292">configuration_parameter</text></a><rect class="literal" x="261" y="305" width="59" height="25" rx="7"/><text class="text" x="271" y="322">RESET</text><rect class="literal" x="330" y="305" width="42" height="25" rx="7"/><text class="text" x="340" y="322">ALL</text><polygon points="724,44 728,44 728,30 724,30" style="fill:black;stroke-width:0"/></svg>

#### alter_database_option

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ alter_database ::= ALTER DATABASE name
| OWNER TO { new_owner
| CURRENT_USER
| SESSION_USER }
| SET TABLESPACE new_tablespace
| SET configuration_parameter { TO | = }
{ value | DEFAULT }
| SET configuration_parameter FROM CURRENT
Expand Down
Loading

0 comments on commit c397ce0

Please sign in to comment.