{
    "content": [
        {
            "type": "text",
            "text": "# ALTER_CONVERSION (man)\n\n## NAME\n\nALTERCONVERSION - change the definition of a conversion\n\n## SYNOPSIS\n\nALTER CONVERSION name RENAME TO newname\nALTER CONVERSION name OWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER CONVERSION name SET SCHEMA newschema\n\n## DESCRIPTION\n\nALTER CONVERSION changes the definition of a conversion.\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **PARAMETERS**\n- **EXAMPLES**\n- **COMPATIBILITY**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "ALTER_CONVERSION",
        "section": "",
        "mode": "man",
        "summary": "ALTERCONVERSION - change the definition of a conversion",
        "synopsis": "ALTER CONVERSION name RENAME TO newname\nALTER CONVERSION name OWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER CONVERSION name SET SCHEMA newschema",
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [
            "To rename the conversion iso88591toutf8 to latin1tounicode:",
            "ALTER CONVERSION iso88591toutf8 RENAME TO latin1tounicode;",
            "To change the owner of the conversion iso88591toutf8 to joe:",
            "ALTER CONVERSION iso88591toutf8 OWNER TO joe;"
        ],
        "see_also": [
            {
                "name": "CREATECONVERSION",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CREATECONVERSION/7/json"
            },
            {
                "name": "DROPCONVERSION",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/DROPCONVERSION/7/json"
            },
            {
                "name": "CONVERSION",
                "section": "7",
                "url": "https://www.chedong.com/phpMan.php/man/CONVERSION/7/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "PARAMETERS",
                "lines": 12,
                "subsections": []
            },
            {
                "name": "EXAMPLES",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "COMPATIBILITY",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "ALTERCONVERSION - change the definition of a conversion\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "ALTER CONVERSION name RENAME TO newname\nALTER CONVERSION name OWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER CONVERSION name SET SCHEMA newschema\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "ALTER CONVERSION changes the definition of a conversion.\n\nYou must own the conversion to use ALTER CONVERSION. To alter the owner, you must also be a\ndirect or indirect member of the new owning role, and that role must have CREATE privilege on\nthe conversion's schema. (These restrictions enforce that altering the owner doesn't do\nanything you couldn't do by dropping and recreating the conversion. However, a superuser can\nalter ownership of any conversion anyway.)\n",
                "subsections": []
            },
            "PARAMETERS": {
                "content": "name\nThe name (optionally schema-qualified) of an existing conversion.\n\nnewname\nThe new name of the conversion.\n\nnewowner\nThe new owner of the conversion.\n\nnewschema\nThe new schema for the conversion.\n",
                "subsections": []
            },
            "EXAMPLES": {
                "content": "To rename the conversion iso88591toutf8 to latin1tounicode:\n\nALTER CONVERSION iso88591toutf8 RENAME TO latin1tounicode;\n\nTo change the owner of the conversion iso88591toutf8 to joe:\n\nALTER CONVERSION iso88591toutf8 OWNER TO joe;\n",
                "subsections": []
            },
            "COMPATIBILITY": {
                "content": "There is no ALTER CONVERSION statement in the SQL standard.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "CREATE CONVERSION (CREATECONVERSION(7)), DROP CONVERSION (DROPCONVERSION(7))\n\n\n\nPostgreSQL 14.23                                2026                             ALTER CONVERSION(7)",
                "subsections": []
            }
        }
    }
}