Re: [PATCHES] Implemented current_query

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Implemented current_query
Дата
Msg-id 8823.1206807593@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Implemented current_query  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
Bruce Momjian <bruce@momjian.us> writes:
> Uh, I think based on other usage it should be called client_statement().

That is *exactly* the wrong thing, because "statement" specifically
means one SQL statement.

"client_query" seems about the best compromise I've heard so far.

It's too bad we didn't have this debate before pg_stat_activity got out
into the wild, because it's now too late to rename its column
current_query.  Possibly we should stick with current_query() just
for consistency with that view ...
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [DOCS] pg_total_relation_size() and CHECKPOINT
Следующее
От: Dean Rasheed
Дата:
Сообщение: Re: [PATCHES] Auto-explain patch