pg_stat_statement normalization fails due to temporary tables

Поиск
Список
Период
Сортировка
От Andres Freund
Тема pg_stat_statement normalization fails due to temporary tables
Дата
Msg-id 20141202130720.GF2456@alap3.anarazel.de
обсуждение исходный текст
Ответы Re: pg_stat_statement normalization fails due to temporary tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

pg_stat_statement's query normalization fails when temporary tables are
used in a query. That's because JumbleRangeTable() uses the relid in the
RTE to build the query fingerprint. I think in this case pgss from 9.1
actually would do better than 9.2+ as the hash lookup previously didn't
use the relid.

I don't really have a good idea about fixing this though. The best thing
that comes to mind is simply use eref->aliasname for the
disambiguation...

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: "Tomas Vondra"
Дата:
Сообщение: Re: excessive amounts of consumed memory (RSS), triggering OOM killer
Следующее
От: Alex Shulgin
Дата:
Сообщение: Re: Turning recovery.conf into GUCs