{
    "content": [
        {
            "type": "text",
            "text": "# commit (info)\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\ntransaction become visible to others and are guaranteed to be durable\nif a crash occurs.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **NOTES**\n- **EXAMPLES**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "commit",
        "section": "",
        "mode": "info",
        "summary": "COMMIT - commit the current transaction",
        "synopsis": "COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "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": 4,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 3,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "COMMIT - commit the current transaction\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "COMMIT commits the current transaction. All changes made by the\ntransaction become visible to others and are guaranteed to be durable\nif a crash occurs.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "WORK\nTRANSACTION\nOptional key words. They have no effect.\n\nAND CHAIN\nIf AND CHAIN is specified, a new transaction is immediately started\nwith the same transaction characteristics (see SET TRANSACTION\n(SETTRANSACTION(7))) as the just finished one. Otherwise, no new\ntransaction is started.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "Use ROLLBACK(7) to abort a transaction.\n\nIssuing COMMIT when not inside a transaction does no harm, but it will\nprovoke a warning message.  COMMIT AND CHAIN when not inside a\ntransaction is an error.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "To commit the current transaction and make all changes permanent:\n\nCOMMIT;\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "The command COMMIT conforms to the SQL standard. The form COMMIT\nTRANSACTION is a PostgreSQL extension.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "BEGIN(7), ROLLBACK(7)\n\nPostgreSQL 14.23                     2026                            COMMIT(7)",
                "subsections": []
            }
        }
    }
}