]> begriffs open source - ai-pg/blob - full-docs/txt/sql-end.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / sql-end.txt
1
2 END
3
4    END — commit the current transaction
5
6 Synopsis
7
8 END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
9
10 Description
11
12    END commits the current transaction. All changes made by the
13    transaction become visible to others and are guaranteed to be durable
14    if a crash occurs. This command is a PostgreSQL extension that is
15    equivalent to COMMIT.
16
17 Parameters
18
19    WORK
20           TRANSACTION
21           Optional key words. They have no effect.
22
23    AND CHAIN
24           If AND CHAIN is specified, a new transaction is immediately
25           started with the same transaction characteristics (see SET
26           TRANSACTION) as the just finished one. Otherwise, no new
27           transaction is started.
28
29 Notes
30
31    Use ROLLBACK to abort a transaction.
32
33    Issuing END when not inside a transaction does no harm, but it will
34    provoke a warning message.
35
36 Examples
37
38    To commit the current transaction and make all changes permanent:
39 END;
40
41 Compatibility
42
43    END is a PostgreSQL extension that provides functionality equivalent to
44    COMMIT, which is specified in the SQL standard.
45
46 See Also
47
48    BEGIN, COMMIT, ROLLBACK