explain (verbose off, normalized) vs query planid

Поиск
Список
Период
Сортировка
От legrand legrand
Тема explain (verbose off, normalized) vs query planid
Дата
Msg-id 1526162863241-0.post@n3.nabble.com
обсуждение исходный текст
Ответы Re: explain (verbose off, normalized) vs query planid  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Hello,

as described in:
http://www.postgresql-archive.org/Re-FEATURE-PATCH-pg-stat-statements-with-plans-v02-td6015488.html

I'm wondering about the best way to build a query planid. 

It seems natural (to me) to calculate a hash value based on the normalized
plan text 
generated by

explain (costs off, normalized) 
or maybe
explain (costs off, verbose, normalized)

this normalized output can be done by adding a modified get_const_expr in
ruleutils.c as proposed in attached file.

Would this "explain normalized" feature be interesting for core team and or
users ?

Regards
PAscal

get_const_expr_normalized.c
<http://www.postgresql-archive.org/file/t348768/get_const_expr_normalized.c>  






--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: lazy detoasting
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Postgres 11 release notes