Re: Hash id in pg_stat_statements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Hash id in pg_stat_statements
Дата
Msg-id 18167.1349287444@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Hash id in pg_stat_statements  (Daniel Farina <daniel@heroku.com>)
Ответы Re: Hash id in pg_stat_statements  (Peter Geoghegan <peter@2ndquadrant.com>)
Re: Hash id in pg_stat_statements  (Daniel Farina <daniel@heroku.com>)
Re: Hash id in pg_stat_statements  (Peter Geoghegan <peter@2ndquadrant.com>)
Список pgsql-hackers
Daniel Farina <daniel@heroku.com> writes:
> Instead, I think it makes sense to assign a number -- arbitrarily, but
> uniquely -- to the generation of a new row in pg_stat_statements, and,
> on the flip side, whenever a row is retired its number should be
> eliminated, practically, for-ever.  This way re-introductions between
> two samplings of pg_stat_statements cannot be confused for a
> contiguously maintained statistic on a query.

This argument seems sensible to me.  Is there any use-case where the
proposed counter wouldn't do what people wished to do with an exposed
hash value?
        regards, tom lane



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: do we EXEC_BACKEND on Mac OS X?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Hash id in pg_stat_statements