{
    "mode": "man",
    "parameter": "END",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/END/7/json",
    "generated": "2026-06-15T14:23:01Z",
    "synopsis": "END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]",
    "sections": {
        "NAME": {
            "content": "END - commit the current transaction\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "END [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "END commits the current transaction. All changes made by the transaction become visible to\nothers and are guaranteed to be durable if a crash occurs. This command is a PostgreSQL\nextension that is equivalent to COMMIT.\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 with the same\ntransaction characteristics (see SET TRANSACTION (SETTRANSACTION(7))) as the just\nfinished one. Otherwise, no new transaction is started.\n",
            "subsections": []
        },
        "NOTES": {
            "content": "Use ROLLBACK to abort a transaction.\n\nIssuing END when not inside a transaction does no harm, but it will provoke a warning\nmessage.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "To commit the current transaction and make all changes permanent:\n\nEND;\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "END is a PostgreSQL extension that provides functionality equivalent to COMMIT, which is\nspecified in the SQL standard.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "BEGIN(7), COMMIT(7), ROLLBACK(7)\n\n\n\nPostgreSQL 14.23                                2026                                          END(7)",
            "subsections": []
        }
    },
    "summary": "END - commit the current transaction",
    "flags": [],
    "examples": [
        "To commit the current transaction and make all changes permanent:",
        "END;"
    ],
    "see_also": [
        {
            "name": "BEGIN",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/BEGIN/7/json"
        },
        {
            "name": "COMMIT",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/COMMIT/7/json"
        },
        {
            "name": "ROLLBACK",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/ROLLBACK/7/json"
        }
    ]
}