{"Entry":{"collection":"func","key":"current-query","name":"current_query","aliases":[],"metadata":{"changed_in":[],"changes":[{"descriptions_changed":false,"doc_overhaul":false,"from":"8.3","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"added","to":"8.4"},{"descriptions_changed":false,"doc_overhaul":true,"from":"12","group_changed":null,"signatures":{"added":[],"removed":[]},"status":"changed","to":"13"}],"content_hash":"4626394b94cd08234fc336cc71bd27e4751e490387139573fd985bd3bb9c3b6e","derived_content_hash":"fbee1601c7424bc4bf77bd4ade931547f019fc4430b6255ac473f3867c95b860","documentation_refresh":{"batch":"20261113","original_source_rev":"wiki-repair-20261023:bba9a4c5f0b6c8c1b1f922cfbe164033c91c6416b8395baafadfba09fdbf219c","versions":{"14":"14.25","15":"15.20","16":"16.16","17":"17.12","18":"18.7","19":"19rc2"}},"first_version":"8.4","group":"info","group_label":"System Information Functions And Operators","groups":["info"],"imported_at":"2026-09-27T17:57:29.040951+08:00","last_version":"20","name":"current_query","name_key":"current_query","position":28005,"present_in":["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:f2a575910371a89f6294b32092a6612a5fd84ea01cd9ca44a15d4c4a997963b0","receipt_sha256":"9ec981ed8d4af4455afb2ce5170af9043339ce7222b617a0da7b34852098adde","repair":"wiki-repair-20261023"},"signature":"current_query () → text","signature_count":1,"slug":"current-query","source_rev":"wiki-repair-20261023:bba9a4c5f0b6c8c1b1f922cfbe164033c91c6416b8395baafadfba09fdbf219c","summary":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","summary_zh":""}},"Definition":{"Collection":"func","Key":"current-query","SourceDatabase":"center","Version":"18","SourceTable":"func","SourceKey":"current-query","SourceRevision":"wiki-repair-20261023:bba9a4c5f0b6c8c1b1f922cfbe164033c91c6416b8395baafadfba09fdbf219c","Facts":{"description":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_html":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","doc":{"anchor":"FUNCTIONS-INFO-SESSION-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":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_html":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_query\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"current_query () → 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-SESSION-TABLE","file":"functions-info.html","sha256":"64499116227a087138bb14f29ff6652b200a176d5df3ce2a089c3d5c226b19b3","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"current-query","SourceDatabase":"center","Version":"18","Locale":"en","Title":"current_query","Summary":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","BodyHTML":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","SourceRevision":"wiki-repair-20261023:bba9a4c5f0b6c8c1b1f922cfbe164033c91c6416b8395baafadfba09fdbf219c","ContentHash":"4da662a1aa8ed9ed50dab690c3ff7cde8a48811491eb16ce087e56dcec1de025","Payload":{"description":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_html":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","signatures":[{"description":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_html":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_query\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"current_query () → text","zh_from":"same-version-manual"}]}},"RequestedLocale":"en","Fallback":false,"Versions":["10","11","12","13","14","15","16","17","18","19","20","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":"21531d13099b155a14110469b7a262d6fe95ba08854d88d3976a48539e813532","Text":"current_query () → text","Returns":"text","Payload":{"description":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_html":"Returns the text of the currently executing query, as submitted by the client (which might contain more than one statement).","description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","examples":[],"html":"\u003ccode class=\"function\"\u003ecurrent_query\u003c/code\u003e () → \u003ccode class=\"returnvalue\"\u003etext\u003c/code\u003e","returns":"text","text":"current_query () → text","zh_from":"same-version-manual"}}],"Spellings":null,"SQLState":null,"Evidence":null}
