File tree 2 files changed +9
-9
lines changed 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/release_savepoint.sgml,v 1.3 2004/11/27 21:27:07 petere Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/release_savepoint.sgml,v 1.4 2005/01/06 20:53:34 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -94,9 +94,9 @@ RELEASE [ SAVEPOINT ] <replaceable>savepoint_name</replaceable>
94
94
To establish and later destroy a savepoint:
95
95
<programlisting>
96
96
BEGIN;
97
- INSERT INTO table VALUES (3);
97
+ INSERT INTO table1 VALUES (3);
98
98
SAVEPOINT my_savepoint;
99
- INSERT INTO table VALUES (4);
99
+ INSERT INTO table1 VALUES (4);
100
100
RELEASE SAVEPOINT my_savepoint;
101
101
COMMIT;
102
102
</programlisting>
Original file line number Diff line number Diff line change 1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/savepoint.sgml,v 1.3 2004/09/20 00:04:19 neilc Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/savepoint.sgml,v 1.4 2005/01/06 20:53:34 tgl Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -83,11 +83,11 @@ SAVEPOINT <replaceable>savepoint_name</replaceable>
83
83
after it was established:
84
84
<programlisting>
85
85
BEGIN;
86
- INSERT INTO table VALUES (1);
86
+ INSERT INTO table1 VALUES (1);
87
87
SAVEPOINT my_savepoint;
88
- INSERT INTO table VALUES (2);
88
+ INSERT INTO table1 VALUES (2);
89
89
ROLLBACK TO SAVEPOINT my_savepoint;
90
- INSERT INTO table VALUES (3);
90
+ INSERT INTO table1 VALUES (3);
91
91
COMMIT;
92
92
</programlisting>
93
93
The above transaction will insert the values 1 and 3, but not 2.
@@ -97,9 +97,9 @@ COMMIT;
97
97
To establish and later destroy a savepoint:
98
98
<programlisting>
99
99
BEGIN;
100
- INSERT INTO table VALUES (3);
100
+ INSERT INTO table1 VALUES (3);
101
101
SAVEPOINT my_savepoint;
102
- INSERT INTO table VALUES (4);
102
+ INSERT INTO table1 VALUES (4);
103
103
RELEASE SAVEPOINT my_savepoint;
104
104
COMMIT;
105
105
</programlisting>
You can’t perform that action at this time.
0 commit comments