Bruce Momjian <br...@momjian.us> writes: > Tom Lane wrote: >> We should take a second look at the usage of debug_query_string, >> particularly the recently added current_query() SQL function.
> I looked at the use of 'debug_query_string'; I didn't see how > current_query() could access the more concise query string that is > stored in various structures (comment added); it works now by accessing > the global variable 'debug_query_string'. The alternative I was envisioning was to have it look at the ActivePortal's query string. However, if you prefer to define the function as returning the current client query, it's fine as-is. We should make sure the documentation explains it like that however. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers