Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document nested SAVEPOINTs #6675

Merged
merged 1 commit into from
Apr 24, 2020
Merged

Document nested SAVEPOINTs #6675

merged 1 commit into from
Apr 24, 2020

Commits on Apr 23, 2020

  1. Document nested transactions with SAVEPOINTs

    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/nested" savepoints, and update the examples 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 the only allowed savepoint name.
    
    - Add information on how CockroachDB handles savepoints and locking
      vs. Postgres
    
    - Add a new "nested transactions" section to the 'Transactions' page,
      including:
    
      - A brief description of why nested transactions are useful
    
      - A description of how COMMIT, ROLLBACK, RELEASE SAVEPOINT, and
        ROLLBACK TO SAVEPOINT relate to each other
    
    - Draw distinctions in several places between "retry" savepoints and
      "nested" or "generalized" savepoints, since they are different
    
    - Update mentions of savepoints on 'SQL Statements' and 'Postgres
      Compatibility' to note that they are supported now
    rmloveland committed Apr 23, 2020
    Configuration menu
    Copy the full SHA
    8f98b0e View commit details
    Browse the repository at this point in the history