{"Entry":{"collection":"func","key":"pg-get-indexdef","name":"pg_get_indexdef","aliases":[],"metadata":{"changed_in":["7.4"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.1","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"7.2"},{"descriptions_changed":true,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":["pg_get_indexdef ( index_oid ) → text","pg_get_indexdef ( index_oid, column_no, pretty_bool ) → text"],"removed":["pg_get_indexdef ( indexOID ) → text"]},"status":"changed","to":"7.4"},{"descriptions_changed":false,"doc_overhaul":false,"from":"7.4","group_changed":{"from":"misc","to":"info"},"signatures":{"added":[],"removed":[]},"status":"changed","to":"8.0"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"e694abce781d40d7deffa6bc6d9584463fe3fdcc8bfcfb164bc6ab34d0b39be1","first_version":"7.2","group":"info","group_label":"System Information Functions And Operators","groups":["misc","info"],"imported_at":"2026-09-27T17:57:29.184762+08:00","last_version":"20","name":"pg_get_indexdef","name_key":"pg_get_indexdef","position":28061,"present_in":["7.2","7.3","7.4","8.0","8.1","8.2","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"],"signature":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","signature_count":1,"slug":"pg-get-indexdef","source_rev":"b7bd9cda","summary":"Reconstructs the creating command for an index.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-get-indexdef","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-get-indexdef","SourceRevision":"b7bd9cda","Facts":{"description":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If column is supplied and is not zero, only the definition of that column is reconstructed.","description_html":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e is supplied and is not zero, only the definition of that column is reconstructed.","description_zh":"","description_zh_html":"","doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"18"},"group":"info","group_label":"System Information Functions And Operators","lang":"en","layout":"table-new","pages":["functions-info.html"],"prose_only":false,"signatures":[{"description":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If column is supplied and is not zero, only the definition of that column is reconstructed.","description_html":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e is supplied and is not zero, only the definition of that column is reconstructed.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_get_indexdef\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eindex\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epretty\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","zh_from":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-get-indexdef","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"pg_get_indexdef","Summary":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了column而且不为零，则只重建该列的定义。","BodyHTML":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了\u003cem\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e而且不为零，则只重建该列的定义。\u003cpre\u003epg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text\u003c/pre\u003e重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了\u003cem\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e而且不为零，则只重建该列的定义。","SourceRevision":"1b5ca64c","ContentHash":"7ef216a72d2e898a5ae56803bc396e6afc71338735b023d35480d39d57705b02","Payload":{"description_zh":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了column而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了\u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e而且不为零，则只重建该列的定义。","signatures":[{"description_zh":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了column而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了\u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e而且不为零，则只重建该列的定义。","returns":"text","text":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","7.2","7.3","7.4","8.0","8.1","8.2","8.3","8.4","9.0","9.1","9.2","9.3","9.4","9.5","9.6"],"Locales":["en","zh-Hans"],"Signatures":[{"Version":"18","Ordinal":0,"Hash":"52b3160c754f16ca04d64cabdfbefdc2de243d10dcf513c0897554de06edf9e1","Text":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","Returns":"text","Payload":{"description":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If column is supplied and is not zero, only the definition of that column is reconstructed.","description_html":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e is supplied and is not zero, only the definition of that column is reconstructed.","description_zh":"","description_zh_html":"","examples":[],"html":"\u003ccode class=\"function\"\u003epg_get_indexdef\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eindex\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e [\u003cspan class=\"optional\"\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003einteger\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003epretty\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eboolean\u003c/code\u003e\u003c/span\u003e ] ) → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","zh_from":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
