{"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","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"],"signature":"current_query () → text","signature_count":1,"slug":"current-query","source_rev":"b7bd9cda","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":"b7bd9cda","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","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":"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":""}],"zh_from":""},"ManualEvidence":{"doc":{"anchor":"FUNCTIONS-INFO-SESSION-TABLE","file":"functions-info.html","slug":"18"}},"MeasuredEvidence":{}},"Text":{"Collection":"func","Key":"current-query","SourceDatabase":"pgweb","Version":"18","Locale":"zh-Hans","Title":"current_query","Summary":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","BodyHTML":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。\u003cpre\u003ecurrent_query () → text\u003c/pre\u003e返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","SourceRevision":"ca936764","ContentHash":"52f7c2633e6fb9f3c137f7c702313a9e52f949805aa235cfa6100bcf9728fca4","Payload":{"description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","signatures":[{"description_zh":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","description_zh_html":"返回客户端提交的当前正在执行的查询文本（可能包含多条语句）。","returns":"text","text":"current_query () → text","zh_from":"doc"}],"zh_from":"doc"}},"RequestedLocale":"zh-Hans","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":""}}],"Spellings":null,"SQLState":null,"Evidence":null}
