'\" t .\" Title: COMMIT .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 2019 .\" Manual: PostgreSQL 9.6.12 Documentation .\" Source: PostgreSQL 9.6.12 .\" Language: English .\" .TH "COMMIT" "7" "2019" "PostgreSQL 9.6.12" "PostgreSQL 9.6.12 Documentation" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" COMMIT \- commit the current transaction .SH "SYNOPSIS" .sp .nf COMMIT [ WORK | TRANSACTION ] .fi .SH "DESCRIPTION" .PP \fBCOMMIT\fR commits the current transaction\&. All changes made by the transaction become visible to others and are guaranteed to be durable if a crash occurs\&. .SH "PARAMETERS" .PP WORK .br TRANSACTION .RS 4 Optional key words\&. They have no effect\&. .RE .SH "NOTES" .PP Use \fBROLLBACK\fR(7) to abort a transaction\&. .PP Issuing \fBCOMMIT\fR when not inside a transaction does no harm, but it will provoke a warning message\&. .SH "EXAMPLES" .PP To commit the current transaction and make all changes permanent: .sp .if n \{\ .RS 4 .\} .nf COMMIT; .fi .if n \{\ .RE .\} .SH "COMPATIBILITY" .PP The SQL standard only specifies the two forms COMMIT and COMMIT WORK\&. Otherwise, this command is fully conforming\&. .SH "SEE ALSO" \fBBEGIN\fR(7), \fBROLLBACK\fR(7)