1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
5
>RELEASE SAVEPOINT</TITLE
8
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
10
HREF="mailto:pgsql-docs@postgresql.org"><LINK
12
TITLE="PostgreSQL 9.1beta1 Documentation"
13
HREF="index.html"><LINK
16
HREF="sql-commands.html"><LINK
19
HREF="sql-reindex.html"><LINK
22
HREF="sql-reset.html"><LINK
25
HREF="stylesheet.css"><META
26
HTTP-EQUIV="Content-Type"
27
CONTENT="text/html; charset=ISO-8859-1"><META
29
CONTENT="2011-04-27T21:20:33"></HEAD
35
SUMMARY="Header navigation table"
47
>PostgreSQL 9.1beta1 Documentation</A
57
HREF="sql-reindex.html"
67
HREF="sql-reindex.html"
101
NAME="SQL-RELEASE-SAVEPOINT"
103
>RELEASE SAVEPOINT</H1
111
>RELEASE SAVEPOINT -- destroy a previously defined savepoint</DIV
113
CLASS="REFSYNOPSISDIV"
121
>RELEASE [ SAVEPOINT ] <TT
138
>RELEASE SAVEPOINT</TT
139
> destroys a savepoint previously defined
140
in the current transaction.
143
> Destroying a savepoint makes it unavailable as a rollback point,
144
but it has no other user visible behavior. It does not undo the
145
effects of commands executed after the savepoint was established.
147
HREF="sql-rollback-to.html"
148
>ROLLBACK TO SAVEPOINT</A
150
Destroying a savepoint when
151
it is no longer needed allows the system to reclaim some resources
152
earlier than transaction end.
157
>RELEASE SAVEPOINT</TT
158
> also destroys all savepoints that were
159
established after the named savepoint was established.
183
> The name of the savepoint to destroy.
197
> Specifying a savepoint name that was not previously defined is an error.
200
> It is not possible to release a savepoint when the transaction is in
204
> If multiple savepoints have the same name, only the one that was most
205
recently defined is released.
216
> To establish and later destroy a savepoint:
218
CLASS="PROGRAMLISTING"
220
INSERT INTO table1 VALUES (3);
221
SAVEPOINT my_savepoint;
222
INSERT INTO table1 VALUES (4);
223
RELEASE SAVEPOINT my_savepoint;
226
The above transaction will insert both 3 and 4.
237
> This command conforms to the <ACRONYM
240
> standard. The standard
241
specifies that the key word <TT
260
HREF="sql-begin.html"
263
HREF="sql-commit.html"
266
HREF="sql-rollback.html"
269
HREF="sql-rollback-to.html"
270
>ROLLBACK TO SAVEPOINT</A
272
HREF="sql-savepoint.html"
280
SUMMARY="Footer navigation table"
291
HREF="sql-reindex.html"
309
HREF="sql-reset.html"
325
HREF="sql-commands.html"
b'\\ No newline at end of file'