Re: [COMMITTERS] pgsql: Adjust things so that the query_string of a cached plan and the
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [COMMITTERS] pgsql: Adjust things so that the query_string of a cached plan and the |
| Дата | |
| Msg-id | 3659.1231359624@sss.pgh.pa.us обсуждение |
| Ответ на | Re: [COMMITTERS] pgsql: Adjust things so that the query_string of a cached plan and the (Bruce Momjian <bruce@momjian.us>) |
| Ответы |
Re: [COMMITTERS] pgsql: Adjust things so that the
query_string of a cached plan and the
|
| Список | pgsql-hackers |
Bruce Momjian <bruce@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
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера