{"Entry":{"collection":"func","key":"pg-get-expr","name":"pg_get_expr","aliases":[],"metadata":{"changed_in":["9.1"],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"7.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","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":false,"from":"9.0","group_changed":null,"signatures":{"added":["pg_get_expr ( pg_node_tree, relation_oid ) → text","pg_get_expr ( pg_node_tree, relation_oid, pretty_bool ) → text"],"removed":["pg_get_expr ( expr_text, relation_oid ) → text","pg_get_expr ( expr_text, relation_oid, pretty_bool ) → text"]},"status":"changed","to":"9.1"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"03dcc36eed204c66b0e7605f24350d59f47d6416798571b21533edcfa1af797c","derived_content_hash":"4f1c867557e6d15d79387c8688823e560df65de3239f421cf8fb84d362095c31","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:ba2ff171b195718f7fe22bbdd94001e1b9cb3395021cd6f4dac9ecdd977f70af","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"7.4","group":"info","group_label":"System Information Functions And Operators","groups":["misc","info"],"imported_at":"2026-09-27T17:57:29.169997+08:00","last_version":"20","name":"pg_get_expr","name_key":"pg_get_expr","position":28056,"present_in":["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:8bfc6e1ad0fa9da02362771703a62c895c66affdf4b067e9f42be47a4ba6341c","receipt_sha256":"e749f1596524831a217221f67fa65baa2f294c11a4f52ba944fa442d3856fa12","repair":"wiki-repair-20261023"},"signature":"pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean ] ) → text","signature_count":1,"slug":"pg-get-expr","source_rev":"wiki-repair-20261023:ba2ff171b195718f7fe22bbdd94001e1b9cb3395021cd6f4dac9ecdd977f70af","summary":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column.","summary_zh":""}},"Definition":{"Collection":"func","Key":"pg-get-expr","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"pg-get-expr","SourceRevision":"wiki-repair-20261023:ba2ff171b195718f7fe22bbdd94001e1b9cb3395021cd6f4dac9ecdd977f70af","Facts":{"description":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_html":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_zh":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","description_zh_html":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","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":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_html":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_zh":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","description_zh_html":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_get_expr\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eexpr\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_node_tree\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003erelation\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e [\u003cspan class=\"optional\"\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_expr ( expr pg_node_tree, relation oid [, 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-expr","SourceDatabase":"center","Version":"18","Locale":"en","Title":"pg_get_expr","Summary":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","BodyHTML":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","SourceRevision":"wiki-repair-20261023:ba2ff171b195718f7fe22bbdd94001e1b9cb3395021cd6f4dac9ecdd977f70af","ContentHash":"a8bddacdc47a91b5305faa71405d21b770a523851fa497541a1f77a14dbe6188","Payload":{"description":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_html":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","signatures":[{"description":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_html":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_zh":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","description_zh_html":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_get_expr\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eexpr\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_node_tree\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003erelation\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e [\u003cspan class=\"optional\"\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_expr ( expr pg_node_tree, relation oid [, 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.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":"92946bb0d8407e26dc9d760e71616e033b1ee35716619182e7afd29acc062030","Text":"pg_get_expr ( expr pg_node_tree, relation oid [, pretty boolean] ) → text","Returns":"text","Payload":{"description":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_html":"Decompiles the internal form of an expression stored in the system catalogs, such as the default value for a column. If the expression might contain Vars, specify the OID of the relation they refer to as the second parameter; if no Vars are expected, passing zero is sufficient.","description_zh":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","description_zh_html":"反编译存储在系统目录中的表达式的内部形式，例如列的默认值。如果表达式可能包含 Var 节点，请将它们所引用的关系的 OID 指定为第二个参数；如果预计不含 Var 节点，传入零即可。","examples":[],"html":"\u003ccode class=\"function\"\u003epg_get_expr\u003c/code\u003e ( \u003cem class=\"parameter\"\u003e\u003ccode\u003eexpr\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003epg_node_tree\u003c/code\u003e, \u003cem class=\"parameter\"\u003e\u003ccode\u003erelation\u003c/code\u003e\u003c/em\u003e \u003ccode class=\"type\"\u003eoid\u003c/code\u003e [\u003cspan class=\"optional\"\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_expr ( expr pg_node_tree, relation oid [, pretty boolean] ) → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
