Problems around compute_query_id

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Problems around compute_query_id
Дата
Msg-id YHPkU8hFi4no4NSw@paquier.xyz
обсуждение исходный текст
Ответы Re: Problems around compute_query_id
Список pgsql-hackers
Hi all,

Starting a new thread as the one that has introduced compute_query_id
is already long enough.

Fujii-san has reported on Twitter that enabling the computation of
query IDs does not work properly with log_statement as the query ID is
calculated at parse analyze time and the query is logged before that.
As far as I can see, that's really a problem as any queries logged are
combined with a query ID of 0, and log parsers would not really be
able to use that, even if the information provided by for example
log_duration gives the computed query ID prevent in pg_stat_activity.

While making the feature run on some test server, I have noticed that
%Q would log some garbage query ID for autovacuum workers that's kept
around.  That looks wrong.

Thoughts?
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Uninitialized scalar variable (UNINIT) (src/backend/statistics/extended_stats.c)
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Performance degradation of REFRESH MATERIALIZED VIEW