{
    "content": [
        {
            "type": "text",
            "text": "# COMMIT(7) (man)\n\n**Summary:** COMMIT - commit the current transaction\n\n**Synopsis:** COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]\n\n## Examples\n\n- `To commit the current transaction and make all changes permanent:`\n- `COMMIT;`\n\n## See Also\n\n- BEGIN(7)\n- ROLLBACK(7)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (3 lines)\n- **PARAMETERS** (9 lines)\n- **NOTES** (5 lines)\n- **EXAMPLES** (4 lines)\n- **COMPATIBILITY** (3 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nCOMMIT - commit the current transaction\n\n### SYNOPSIS\n\nCOMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]\n\n### DESCRIPTION\n\nCOMMIT commits the current transaction. All changes made by the transaction become visible to\nothers and are guaranteed to be durable if a crash occurs.\n\n### PARAMETERS\n\nWORK\nTRANSACTION\nOptional key words. They have no effect.\n\nAND CHAIN\nIf AND CHAIN is specified, a new transaction is immediately started with the same\ntransaction characteristics (see SET TRANSACTION (SETTRANSACTION(7))) as the just\nfinished one. Otherwise, no new transaction is started.\n\n### NOTES\n\nUse ROLLBACK(7) to abort a transaction.\n\nIssuing COMMIT when not inside a transaction does no harm, but it will provoke a warning\nmessage.  COMMIT AND CHAIN when not inside a transaction is an error.\n\n### EXAMPLES\n\nTo commit the current transaction and make all changes permanent:\n\nCOMMIT;\n\n### COMPATIBILITY\n\nThe command COMMIT conforms to the SQL standard. The form COMMIT TRANSACTION is a PostgreSQL\nextension.\n\n### SEE ALSO\n\nBEGIN(7), ROLLBACK(7)\n\n\n\nPostgreSQL 14.23                                2026                                       COMMIT(7)\n\n"
        }
    ],
    "structuredContent": {
        "command": "COMMIT",
        "section": "7",
        "mode": "man",
        "summary": "COMMIT - commit the current transaction",
        "synopsis": "COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]",
        "flags": [],
        "examples": [
            "To commit the current transaction and make all changes permanent:",
            "COMMIT;"
        ],
        "see_also": [
            {
                "name": "BEGIN",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/BEGIN/7/json"
            },
            {
                "name": "ROLLBACK",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/ROLLBACK/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 9,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}