{
    "mode": "man",
    "parameter": "ALTER_TEXT_SEARCH_DICTIONARY",
    "section": "7",
    "url": "https://www.chedong.com/phpMan.php/man/ALTER_TEXT_SEARCH_DICTIONARY/7/json",
    "generated": "2026-10-04T10:14:51Z",
    "synopsis": "ALTER TEXT SEARCH DICTIONARY name (\noption [ = value ] [, ... ]\n)\nALTER TEXT SEARCH DICTIONARY name RENAME TO newname\nALTER TEXT SEARCH DICTIONARY name OWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER TEXT SEARCH DICTIONARY name SET SCHEMA newschema",
    "sections": {
        "NAME": {
            "content": "ALTERTEXTSEARCHDICTIONARY - change the definition of a text search dictionary\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "ALTER TEXT SEARCH DICTIONARY name (\noption [ = value ] [, ... ]\n)\nALTER TEXT SEARCH DICTIONARY name RENAME TO newname\nALTER TEXT SEARCH DICTIONARY name OWNER TO { newowner | CURRENTROLE | CURRENTUSER | SESSIONUSER }\nALTER TEXT SEARCH DICTIONARY name SET SCHEMA newschema\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "ALTER TEXT SEARCH DICTIONARY changes the definition of a text search dictionary. You can\nchange the dictionary's template-specific options, or change the dictionary's name or owner.\n\nYou must be the owner of the dictionary to use ALTER TEXT SEARCH DICTIONARY.\n",
            "subsections": []
        },
        "PARAMETERS": {
            "content": "name\nThe name (optionally schema-qualified) of an existing text search dictionary.\n\noption\nThe name of a template-specific option to be set for this dictionary.\n\nvalue\nThe new value to use for a template-specific option. If the equal sign and value are\nomitted, then any previous setting for the option is removed from the dictionary,\nallowing the default to be used.\n\nnewname\nThe new name of the text search dictionary.\n\nnewowner\nThe new owner of the text search dictionary.\n\nnewschema\nThe new schema for the text search dictionary.\n\nTemplate-specific options can appear in any order.\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "The following example command changes the stopword list for a Snowball-based dictionary.\nOther parameters remain unchanged.\n\nALTER TEXT SEARCH DICTIONARY mydict ( StopWords = newrussian );\n\nThe following example command changes the language option to dutch, and removes the stopword\noption entirely.\n\nALTER TEXT SEARCH DICTIONARY mydict ( language = dutch, StopWords );\n\nThe following example command “updates” the dictionary's definition without actually changing\nanything.\n\nALTER TEXT SEARCH DICTIONARY mydict ( dummy );\n\n(The reason this works is that the option removal code doesn't complain if there is no such\noption.) This trick is useful when changing configuration files for the dictionary: the ALTER\nwill force existing database sessions to re-read the configuration files, which otherwise\nthey would never do if they had read them earlier.\n",
            "subsections": []
        },
        "COMPATIBILITY": {
            "content": "There is no ALTER TEXT SEARCH DICTIONARY statement in the SQL standard.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "CREATE TEXT SEARCH DICTIONARY (CREATETEXTSEARCHDICTIONARY(7)), DROP TEXT SEARCH DICTIONARY\n(DROPTEXTSEARCHDICTIONARY(7))\n\nPostgreSQL 16.14                                2026                 ALTER TEXT SEARCH DICTIONARY(7)",
            "subsections": []
        }
    },
    "summary": "ALTERTEXTSEARCHDICTIONARY - change the definition of a text search dictionary",
    "flags": [],
    "examples": [
        "The following example command changes the stopword list for a Snowball-based dictionary.",
        "Other parameters remain unchanged.",
        "ALTER TEXT SEARCH DICTIONARY mydict ( StopWords = newrussian );",
        "The following example command changes the language option to dutch, and removes the stopword",
        "option entirely.",
        "ALTER TEXT SEARCH DICTIONARY mydict ( language = dutch, StopWords );",
        "The following example command “updates” the dictionary's definition without actually changing",
        "anything.",
        "ALTER TEXT SEARCH DICTIONARY mydict ( dummy );",
        "(The reason this works is that the option removal code doesn't complain if there is no such",
        "option.) This trick is useful when changing configuration files for the dictionary: the ALTER",
        "will force existing database sessions to re-read the configuration files, which otherwise",
        "they would never do if they had read them earlier."
    ],
    "see_also": [
        {
            "name": "CREATETEXTSEARCHDICTIONARY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/CREATETEXTSEARCHDICTIONARY/7/json"
        },
        {
            "name": "DROPTEXTSEARCHDICTIONARY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/DROPTEXTSEARCHDICTIONARY/7/json"
        },
        {
            "name": "DICTIONARY",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/DICTIONARY/7/json"
        }
    ]
}