mirror of
https://github.com/postgres/postgres.git
synced 2025-05-30 00:02:11 -04:00
Add comment that it is difficult to access the more accurate
'query_string' from current_query().
This commit is contained in:
parent
8faffe6a52
commit
6b88393058
@ -8,7 +8,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.67 2009/01/01 17:23:49 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/adt/misc.c,v 1.68 2009/01/07 19:51:21 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -59,6 +59,7 @@ current_database(PG_FUNCTION_ARGS)
|
|||||||
Datum
|
Datum
|
||||||
current_query(PG_FUNCTION_ARGS)
|
current_query(PG_FUNCTION_ARGS)
|
||||||
{
|
{
|
||||||
|
/* there is no easy way to access the more concise 'query_string' */
|
||||||
if (debug_query_string)
|
if (debug_query_string)
|
||||||
PG_RETURN_TEXT_P(cstring_to_text(debug_query_string));
|
PG_RETURN_TEXT_P(cstring_to_text(debug_query_string));
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user