-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #5953. Summary of changes: - Update SAVEPOINT page with more examples of "generalized" aka "nested" savepoints adapted from the RFC, in addition to the existing "retry" savepoints info - Add a new SHOW SAVEPOINT STATUS statement page (with syntax diagram), and add it to the sidebar - Update RELEASE SAVEPOINT docs to clarify "retry" savepoints vs. "generalized", and update the example as well - Update the ROLLBACK docs to mention rollbacks to savepoints more explicitly. Also, update the diagram to reflect that 'cockroach_restart' is no longer a special savepoint name. - Update all 20.1 documentation to reflect that 'cockroach_restart' is no longer a special retry savepoint name, nor is it required. As part of this, rename all savepoint examples using 'cockroach_restart' to use names like 'my_savepoint', etc.
- Loading branch information
1 parent
2a18c9a
commit ba35ff3
Showing
17 changed files
with
393 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,17 @@ | ||
<div><svg width="518" height="68"> | ||
|
||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="92" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="92" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">ROLLBACK</text> | ||
<rect x="163" y="35" width="38" height="32" rx="10"></rect> | ||
<rect x="161" y="33" width="38" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="171" y="53">TO</text> | ||
<rect x="221" y="35" width="98" height="32" rx="10"></rect> | ||
<rect x="219" y="33" width="98" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="229" y="53">SAVEPOINT</text> | ||
|
||
<rect x="339" y="35" width="132" height="32"></rect> | ||
<rect x="337" y="33" width="132" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="347" y="53">cockroach_restart</text> | ||
|
||
<path class="line" d="m17 17 h2 m0 0 h10 m92 0 h10 m20 0 h10 m0 0 h318 m-348 0 h20 m328 0 h20 m-368 0 q10 0 10 10 m348 0 q0 -10 10 -10 m-358 10 v12 m348 0 v-12 m-348 12 q0 10 10 10 m328 0 q10 0 10 -10 m-338 10 h10 m38 0 h10 m0 0 h10 m98 0 h10 m0 0 h10 m132 0 h10 m23 -32 h-3"></path> | ||
<polygon points="509 17 517 13 517 21"></polygon> | ||
<polygon points="509 17 501 13 501 21"></polygon> | ||
</svg></div> | ||
<div><svg width="515" height="69"> | ||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="92" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="92" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">ROLLBACK</text> | ||
<rect x="163" y="35" width="38" height="32" rx="10"></rect> | ||
<rect x="161" y="33" width="38" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="171" y="53">TO</text> | ||
<rect x="221" y="35" width="100" height="32" rx="10"></rect> | ||
<rect x="219" y="33" width="100" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="229" y="53">SAVEPOINT</text><a xlink:href="sql-grammar.html#savepoint_name" xlink:title="savepoint_name"> | ||
<rect x="341" y="35" width="126" height="32"></rect> | ||
<rect x="339" y="33" width="126" height="32" class="nonterminal"></rect> | ||
<text class="nonterminal" x="349" y="53">savepoint_name</text></a><path class="line" d="m17 17 h2 m0 0 h10 m92 0 h10 m20 0 h10 m0 0 h314 m-344 0 h20 m324 0 h20 m-364 0 q10 0 10 10 m344 0 q0 -10 10 -10 m-354 10 v12 m344 0 v-12 m-344 12 q0 10 10 10 m324 0 q10 0 10 -10 m-334 10 h10 m38 0 h10 m0 0 h10 m100 0 h10 m0 0 h10 m126 0 h10 m23 -32 h-3"></path> | ||
<polygon points="505 17 513 13 513 21"></polygon> | ||
<polygon points="505 17 497 13 497 21"></polygon></svg></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<div><svg width="335" height="37"> | ||
<polygon points="9 17 1 13 1 21"></polygon> | ||
<polygon points="17 17 9 13 9 21"></polygon> | ||
<rect x="31" y="3" width="64" height="32" rx="10"></rect> | ||
<rect x="29" y="1" width="64" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="39" y="21">SHOW</text> | ||
<rect x="115" y="3" width="100" height="32" rx="10"></rect> | ||
<rect x="113" y="1" width="100" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="123" y="21">SAVEPOINT</text> | ||
<rect x="235" y="3" width="72" height="32" rx="10"></rect> | ||
<rect x="233" y="1" width="72" height="32" class="terminal" rx="10"></rect> | ||
<text class="terminal" x="243" y="21">STATUS</text> | ||
<path class="line" d="m17 17 h2 m0 0 h10 m64 0 h10 m0 0 h10 m100 0 h10 m0 0 h10 m72 0 h10 m3 0 h-3"></path> | ||
<polygon points="325 17 333 13 333 21"></polygon> | ||
<polygon points="325 17 317 13 317 21"></polygon></svg></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{{site.data.alerts.callout_danger}} | ||
Rollbacks to savepoints over [DDL](https://en.wikipedia.org/wiki/Data_definition_language) statements are not yet supported. This is a known limitation and will be removed in a future version of CockroachDB. | ||
{{site.data.alerts.end}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.