'\" t .\" Title: COMMIT .\" Author: The PostgreSQL Global Development Group .\" Generator: DocBook XSL Stylesheets v1.75.2 .\" Date: 2016 .\" Manual: PostgreSQL 9.5.2 Documentation .\" Source: PostgreSQL 9.5.2 .\" Language: English .\" .TH "COMMIT" "5sql" "2016" "PostgreSQL 9.5.2" "PostgreSQL 9.5.2 Documentation" .\" ----------------------------------------------------------------- .\" * 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(5) 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(5), \fBROLLBACK\fR(5)