release_savepoint.7
来自「PostgreSQL 8.2中增加了很多企业用户所需要的功能和性能上的提高,其开」· 7 代码 · 共 61 行
7
61 行
.\\" auto-generated by docbook2man-spec $Revision: 1.1.1.1 $.TH "RELEASE SAVEPOINT" "" "2008-01-03" "SQL - Language Statements" "SQL Commands".SH NAMERELEASE SAVEPOINT \- destroy a previously defined savepoint.SH SYNOPSIS.sp.nfRELEASE [ SAVEPOINT ] \fIsavepoint_name\fR.sp.fi.SH "DESCRIPTION".PP\fBRELEASE SAVEPOINT\fR destroys a savepoint previously definedin the current transaction..PPDestroying a savepoint makes it unavailable as a rollback point,but it has no other user visible behavior. It does not undo theeffects of commands executed after the savepoint was established.(To do that, see ROLLBACK TO SAVEPOINT [\fBrollback_to_savepoint\fR(7)].) Destroying a savepoint whenit is no longer needed may allow the system to reclaim some resourcesearlier than transaction end..PP\fBRELEASE SAVEPOINT\fR also destroys all savepoints that wereestablished after the named savepoint was established..SH "PARAMETERS".TP\fB\fIsavepoint_name\fB\fRThe name of the savepoint to destroy..SH "NOTES".PPSpecifying a savepoint name that was not previously defined is an error..PPIt is not possible to release a savepoint when the transaction is inan aborted state..PPIf multiple savepoints have the same name, only the one that was mostrecently defined is released..SH "EXAMPLES".PPTo establish and later destroy a savepoint:.sp.nfBEGIN; INSERT INTO table1 VALUES (3); SAVEPOINT my_savepoint; INSERT INTO table1 VALUES (4); RELEASE SAVEPOINT my_savepoint;COMMIT;.sp.fiThe above transaction will insert both 3 and 4..SH "COMPATIBILITY".PPThis command conforms to the SQL standard. The standardspecifies that the key word SAVEPOINT ismandatory, but PostgreSQL allows it tobe omitted..SH "SEE ALSO"BEGIN [\fBbegin\fR(7)], COMMIT [\fBcommit\fR(l)], ROLLBACK [\fBrollback\fR(l)], ROLLBACK TO SAVEPOINT [\fBrollback_to_savepoint\fR(l)], SAVEPOINT [\fBsavepoint\fR(l)]
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?