{"Entry":{"collection":"sql","key":"drop-text-search-dictionary","name":"DROP TEXT SEARCH DICTIONARY","aliases":["droptsdictionary"],"metadata":{"aliases":["droptsdictionary"],"changed_in":[],"changes":[{"from":"8.2","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":[],"removed":[]},"status":"added","synopsis":null,"to":"8.3"},{"from":"9.5","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"9.6"},{"from":"11","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"12"},{"from":"16","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"17"},{"from":"18","purpose_changed":false,"renamed":null,"sections":{"added":[],"changed":["parameters"],"removed":[]},"status":"changed","synopsis":null,"to":"19"}],"content_hash":"175d3f63e7dc19d4d6d81768ba36df70f359a058664f9b79178f8e912db1719b","editorial":{},"first_version":"8.3","group":"textsearch","imported_at":"2026-09-30T17:43:38.613377+08:00","last_version":"20","name":"DROP TEXT SEARCH DICTIONARY","object":"TEXT SEARCH DICTIONARY","position":8005,"present_in":["8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6","10","11","12","13","14","15","16","17","18","19","20"],"purpose":"remove a text search dictionary","purpose_zh":"","related":["alter-text-search-dictionary","create-text-search-dictionary"],"slug":"drop-text-search-dictionary","source_rev":"a709ab85","synopsis":"DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]","verb":"DROP"}},"Definition":{"Collection":"sql","Key":"drop-text-search-dictionary","SourceDatabase":"center","Version":"18","SourceTable":"sqlcmd","SourceKey":"drop-text-search-dictionary","SourceRevision":"a709ab85","Facts":{"anchor":"SQL-DROPTSDICTIONARY","file":"sql-droptsdictionary.html","lang":"en","name":"DROP TEXT SEARCH DICTIONARY","purpose":"remove a text search dictionary","purpose_zh":"","related":["alter-text-search-dictionary","create-text-search-dictionary"],"sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e drops an existing text search dictionary. To execute this command you must be the owner of the dictionary.\u003c/p\u003e","key":"description","title":"Description"},{"html":"\u003cdiv class=\"variablelist\"\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eDo not throw an error if the text search dictionary does not exist. A notice is issued in this case.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eThe name (optionally schema-qualified) of an existing text search dictionary.\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eAutomatically drop objects that depend on the text search dictionary, and in turn all objects that depend on those objects (see \u003ca href=\"/docs/18/ddl-depend.html\" title=\"5.15. Dependency Tracking\"\u003eSection 5.15\u003c/a\u003e).\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003eRefuse to drop the text search dictionary if any objects depend on it. This is the default.\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","key":"parameters","title":"Parameters"},{"html":"\u003cp\u003eRemove the text search dictionary \u003ccode class=\"literal\"\u003eenglish\u003c/code\u003e:\u003c/p\u003e\u003cpre class=\"programlisting\"\u003eDROP TEXT SEARCH DICTIONARY english;\n\u003c/pre\u003e\u003cp\u003eThis command will not succeed if there are any existing text search configurations that use the dictionary. Add \u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e to drop such configurations along with the dictionary.\u003c/p\u003e","key":"examples","title":"Examples"},{"html":"\u003cp\u003eThere is no \u003ccode class=\"command\"\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e statement in the SQL standard.\u003c/p\u003e","key":"compatibility","title":"Compatibility"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/alter-text-search-dictionary/?v=18\" title=\"ALTER TEXT SEARCH DICTIONARY\"\u003e\u003cspan class=\"refentrytitle\"\u003eALTER TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-text-search-dictionary/?v=18\" title=\"CREATE TEXT SEARCH DICTIONARY\"\u003e\u003cspan class=\"refentrytitle\"\u003eCREATE TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"See Also"}],"sections_same_as":"","slug":"18","synopsis_html":"DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [ CASCADE | RESTRICT ]","synopsis_text":"DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]"},"ManualEvidence":{},"MeasuredEvidence":{}},"Text":{"Collection":"sql","Key":"drop-text-search-dictionary","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"DROP TEXT SEARCH DICTIONARY","Summary":"移除一个文本检索词典","BodyHTML":"\u003cpre\u003eDROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]\u003c/pre\u003e\u003csection\u003e\u003ch2\u003e描述\u003c/h2\u003e\u003cp\u003e\u003ccode\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e删除一个现有文本检索词典。要执行此命令，你必须是该词典的拥有者。\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e参数\u003c/h2\u003e\u003cdiv\u003e\u003cdl\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e如果该文本检索词典不存在，则不要抛出错误。这种情况下会发出一个提示。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003cem\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e一个现有文本检索词典的名称（可以是模式限定的）。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e自动删除依赖于该文本检索词典的对象，以及进一步依赖于这些对象的所有对象（参见\u003ca href=\"/docs/18/ddl-depend.html\" rel=\"nofollow\"\u003e第 5.15 节\u003c/a\u003e）。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan\u003e\u003ccode\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e如果有任何对象依赖于该文本检索词典，则拒绝删除它。这是默认值。\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e示例\u003c/h2\u003e\u003cp\u003e移除文本检索词典\u003ccode\u003eenglish\u003c/code\u003e：\u003c/p\u003e\u003cpre\u003eDROP TEXT SEARCH DICTIONARY english;\n\u003c/pre\u003e\u003cp\u003e如果已有文本检索配置使用该词典，此命令将不会成功。加上\u003ccode\u003eCASCADE\u003c/code\u003e可以在删除词典的同时删除这类配置。\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e兼容性\u003c/h2\u003e\u003cp\u003eSQL 标准中没有\u003ccode\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e语句。\u003c/p\u003e\u003c/section\u003e\u003csection\u003e\u003ch2\u003e另见\u003c/h2\u003e\u003cspan\u003e\u003ca href=\"/wiki/sql/alter-text-search-dictionary/?v=18\" title=\"ALTER TEXT SEARCH DICTIONARY\" rel=\"nofollow\"\u003e\u003cspan\u003eALTER TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-text-search-dictionary/?v=18\" title=\"CREATE TEXT SEARCH DICTIONARY\" rel=\"nofollow\"\u003e\u003cspan\u003eCREATE TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e\u003c/section\u003e","SourceRevision":"1b5ca64c","ContentHash":"5fb9abb78e35eacb94173cc2b4e44ff36c9aec0916fd38b13dea50220378e5c3","Payload":{"purpose_zh":"移除一个文本检索词典","sections":[{"html":"\u003cp\u003e\u003ccode class=\"command\"\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e删除一个现有文本检索词典。要执行此命令，你必须是该词典的拥有者。\u003c/p\u003e","key":"description","title":"描述"},{"html":"\u003cdiv class=\"variablelist\"\u003e\u003cdl class=\"variablelist\"\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eIF EXISTS\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e如果该文本检索词典不存在，则不要抛出错误。这种情况下会发出一个提示。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e一个现有文本检索词典的名称（可以是模式限定的）。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e自动删除依赖于该文本检索词典的对象，以及进一步依赖于这些对象的所有对象（参见\u003ca href=\"/docs/18/ddl-depend.html\" title=\"5.15. 依赖跟踪\"\u003e第 5.15 节\u003c/a\u003e）。\u003c/p\u003e\u003c/dd\u003e\u003cdt\u003e\u003cspan class=\"term\"\u003e\u003ccode class=\"literal\"\u003eRESTRICT\u003c/code\u003e\u003c/span\u003e\u003c/dt\u003e\u003cdd\u003e\u003cp\u003e如果有任何对象依赖于该文本检索词典，则拒绝删除它。这是默认值。\u003c/p\u003e\u003c/dd\u003e\u003c/dl\u003e\u003c/div\u003e","key":"parameters","title":"参数"},{"html":"\u003cp\u003e移除文本检索词典\u003ccode class=\"literal\"\u003eenglish\u003c/code\u003e：\u003c/p\u003e\u003cpre class=\"programlisting\"\u003eDROP TEXT SEARCH DICTIONARY english;\n\u003c/pre\u003e\u003cp\u003e如果已有文本检索配置使用该词典，此命令将不会成功。加上\u003ccode class=\"literal\"\u003eCASCADE\u003c/code\u003e可以在删除词典的同时删除这类配置。\u003c/p\u003e","key":"examples","title":"示例"},{"html":"\u003cp\u003eSQL 标准中没有\u003ccode class=\"command\"\u003eDROP TEXT SEARCH DICTIONARY\u003c/code\u003e语句。\u003c/p\u003e","key":"compatibility","title":"兼容性"},{"html":"\u003cspan class=\"simplelist\"\u003e\u003ca href=\"/wiki/sql/alter-text-search-dictionary/?v=18\" title=\"ALTER TEXT SEARCH DICTIONARY\"\u003e\u003cspan class=\"refentrytitle\"\u003eALTER TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e, \u003ca href=\"/wiki/sql/create-text-search-dictionary/?v=18\" title=\"CREATE TEXT SEARCH DICTIONARY\"\u003e\u003cspan class=\"refentrytitle\"\u003eCREATE TEXT SEARCH DICTIONARY\u003c/span\u003e\u003c/a\u003e\u003c/span\u003e","key":"see_also","title":"另见"}],"sections_same_as":"","synopsis_html":"DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] \u003cem class=\"replaceable\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/em\u003e [ CASCADE | RESTRICT ]","synopsis_text":"DROP TEXT SEARCH DICTIONARY [ IF EXISTS ] name [ CASCADE | RESTRICT ]"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
