Re: [HACKERS] [PATCH] Use $ parameters as replacement characters forpg_stat_statements

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: [HACKERS] [PATCH] Use $ parameters as replacement characters forpg_stat_statements
Дата
Msg-id a6538083-854a-9739-769d-3ada5de496dc@2ndquadrant.com
обсуждение исходный текст
Ответ на [HACKERS] [PATCH] Use $ parameters as replacement characters for pg_stat_statements  (Lukas Fittl <lukas@fittl.com>)
Ответы Re: [HACKERS] [PATCH] Use $ parameters as replacement characters for pg_stat_statements
Re: [HACKERS] [PATCH] Use $ parameters as replacement characters for pg_stat_statements
Список pgsql-hackers
On 2/28/17 20:01, Lukas Fittl wrote:
> Currently pg_stat_statements replaces constant values with ? characters.
> I've seen this be a problem on multiple occasions, in particular since
> it conflicts with the use of ? as an operator.
> 
> I'd like to propose changing the replacement character from ? to instead
> be a parameter (like $1).

Hmm, I think this could confuse people into thinking that the queries
displayed were in fact prepared queries.

Maybe we could gather some more ideas.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] objsubid vs subobjid
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [HACKERS] Possible spelling fixes