{"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","derived_content_hash":"f67affc9738452248807d745bdd3cfa2f6d6c9e64c6912f1231bae35475655dc","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:17398cd1307d453c218fde5e585ba2d0276d6af8661632f81bcbd2a0edc0cca7","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"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"],"repair_provenance":{"original_source_revision":"wiki-repair-20261023:d8ceebaec02f61b78c3486cecf5be388a101df6fe6bb477a964dc92472263ef5","receipt_sha256":"184988f831b47961ff563f6f253f975dc41dd63096ee64ffb8f3531e1f8a404a","repair":"wiki-repair-20261023"},"signature":"pg_get_indexdef ( index oid [, column integer, pretty boolean ] ) → text","signature_count":1,"slug":"pg-get-indexdef","source_rev":"wiki-repair-20261023:17398cd1307d453c218fde5e585ba2d0276d6af8661632f81bcbd2a0edc0cca7","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":"wiki-repair-20261023:17398cd1307d453c218fde5e585ba2d0276d6af8661632f81bcbd2a0edc0cca7","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":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 column 而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e 而且不为零，则只重建该列的定义。","doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"},"documentation_revision":{"inputs":[{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","version":"18.7"},{"file":"functions-info.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"f9684137c0b9fb17a691c4d905529d114472a507a007c15058f2703962b611d2","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"},"group":"info","group_label":"系统信息函数和操作符","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":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 column 而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e 而且不为零，则只重建该列的定义。","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":"same-version-manual"}],"translation_provenance":{"inputs":[{"kind":"current-pgdoc-translation","path":"/Users/vonng/pgsty/pgdoc/zh/18/html/functions-info.html","sha256":"7c33185e79430cfbda432dc4db277115c7ac846afccadfcf904ceb1bf2aa1ba5"}],"kind":"same-version-pgdoc","locale":"zh-Hans","source_revision":"b1b500221dbe5437cfca004d6b04d3f6e422765d","version":"18"},"zh_from":"same-version-manual"},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-CATALOG-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"pg-get-indexdef","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_get_indexdef","Summary":"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.","BodyHTML":"Reconstructs the creating command for an index. (This is a decompiled reconstruction, not the original text of the command.) If \u003cem\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e is supplied and is not zero, only the definition of that column is reconstructed.","SourceRevision":"wiki-repair-20261023:17398cd1307d453c218fde5e585ba2d0276d6af8661632f81bcbd2a0edc0cca7","ContentHash":"08b78dd4642fbec1e321486edc49e939d910f83e842444666366b6e3fc34ef43","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.","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":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 column 而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e 而且不为零，则只重建该列的定义。","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":"same-version-manual"}]}},"RequestedLocale":"en","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":"ba030bea4a56e92487bcff9c5563628d1f899951ae0d4c5135d2bff5daedeb26","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":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 column 而且不为零，则只重建该列的定义。","description_zh_html":"重建索引的创建命令。（这是反编译重建的结果，并非命令的原始文本。）如果提供了 \u003cem class=\"parameter\"\u003e\u003ccode\u003ecolumn\u003c/code\u003e\u003c/em\u003e 而且不为零，则只重建该列的定义。","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":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
