{
    "content": [
        {
            "type": "text",
            "text": "# CALL (man)\n\n## NAME\n\nCALL - invoke a procedure\n\n## SYNOPSIS\n\nCALL name ( [ argument ] [, ...] )\n\n## DESCRIPTION\n\nCALL executes a procedure.\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": "CALL",
        "section": "",
        "mode": "man",
        "summary": "CALL - invoke a procedure",
        "synopsis": "CALL name ( [ argument ] [, ...] )",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "CALL dodbmaintenance();"
        ],
        "see_also": [
            {
                "name": "CREATEPROCEDURE",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATEPROCEDURE/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 14,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "CALL - invoke a procedure\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "CALL name ( [ argument ] [, ...] )\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "CALL executes a procedure.\n\nIf the procedure has any output parameters, then a result row will be returned, containing\nthe values of those parameters.\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "name\nThe name (optionally schema-qualified) of the procedure.\n\nargument\nAn argument expression for the procedure call.\n\nArguments can include parameter names, using the syntax name => value. This works the\nsame as in ordinary function calls; see Section 4.3 for details.\n\nArguments must be supplied for all procedure parameters that lack defaults, including OUT\nparameters. However, arguments matching OUT parameters are not evaluated, so it's\ncustomary to just write NULL for them. (Writing something else for an OUT parameter might\ncause compatibility problems with future PostgreSQL versions.)\n",
                "subsections": []
            },
            "NOTES": {
                "content": "The user must have EXECUTE privilege on the procedure in order to be allowed to invoke it.\n\nTo call a function (not a procedure), use SELECT instead.\n\nIf CALL is executed in a transaction block, then the called procedure cannot execute\ntransaction control statements. Transaction control statements are only allowed if CALL is\nexecuted in its own transaction.\n\nPL/pgSQL handles output parameters in CALL commands differently; see Section 43.6.3.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "CALL dodbmaintenance();\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "CALL conforms to the SQL standard, except for the handling of output parameters. The standard\nsays that users should write variables to receive the values of output parameters.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE PROCEDURE (CREATEPROCEDURE(7))\n\n\n\nPostgreSQL 14.23                                2026                                         CALL(7)",
                "subsections": []
            }
        }
    }
}