3 PostgreSQL documentation
6 <refentry id=
"SQL-END">
8 <refentrytitle id=
"SQL-END-TITLE">END
</refentrytitle>
9 <manvolnum>7</manvolnum>
10 <refmiscinfo>SQL - Language Statements
</refmiscinfo>
14 <refname>END
</refname>
15 <refpurpose>commit the current transaction
</refpurpose>
18 <indexterm zone=
"sql-end">
19 <primary>END
</primary>
24 END [ WORK | TRANSACTION ]
29 <title>Description
</title>
32 <command>END
</command> commits the current transaction. All changes
33 made by the transaction become visible to others and are guaranteed
34 to be durable if a crash occurs. This command is a
35 <productname>PostgreSQL
</productname> extension
36 that is equivalent to
<xref linkend=
"sql-commit"
37 endterm=
"sql-commit-title">.
42 <title>Parameters
</title>
46 <term><literal>WORK
</literal></term>
47 <term><literal>TRANSACTION
</literal></term>
50 Optional key words. They have no effect.
61 Use
<xref linkend=
"SQL-ROLLBACK" endterm=
"SQL-ROLLBACK-TITLE"> to
66 Issuing
<command>END<
/> when not inside a transaction does
67 no harm, but it will provoke a warning message.
72 <title>Examples
</title>
75 To commit the current transaction and make all changes permanent:
83 <title>Compatibility
</title>
86 <command>END
</command> is a
<productname>PostgreSQL
</productname>
87 extension that provides functionality equivalent to
<xref
88 linkend=
"sql-commit" endterm=
"sql-commit-title">, which is
89 specified in the SQL standard.
94 <title>See Also
</title>
96 <simplelist type=
"inline">
97 <member><xref linkend=
"sql-begin" endterm=
"sql-begin-title"></member>
98 <member><xref linkend=
"sql-commit" endterm=
"sql-commit-title"></member>
99 <member><xref linkend=
"sql-rollback" endterm=
"sql-rollback-title"></member>