Skip to content

Commit 6b88393

Browse files
committed
Add comment that it is difficult to access the more accurate
'query_string' from current_query().
1 parent 8faffe6 commit 6b88393

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/adt/misc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.67 2009/01/01 17:23:49 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.68 2009/01/07 19:51:21 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -59,6 +59,7 @@ current_database(PG_FUNCTION_ARGS)
5959
Datum
6060
current_query(PG_FUNCTION_ARGS)
6161
{
62+
/* there is no easy way to access the more concise 'query_string' */
6263
if (debug_query_string)
6364
PG_RETURN_TEXT_P(cstring_to_text(debug_query_string));
6465
else

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy