Re: CPU costs of random_zipfian in pgbench

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: CPU costs of random_zipfian in pgbench
Дата
Msg-id 20190401215135.GA31141@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: CPU costs of random_zipfian in pgbench  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: CPU costs of random_zipfian in pgbench  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: CPU costs of random_zipfian in pgbench  (Fabien COELHO <coelho@cri.ensmp.fr>)
Список pgsql-hackers
On 2019-Apr-01, Tom Lane wrote:

> Fabien COELHO <coelho@cri.ensmp.fr> writes:
> >> I was wondering about that too.  It seems like it'd be a wise idea to
> >> further constrain s and/or n to ensure that the s > 1 code path doesn't do
> >> anything too awful ...
> 
> > Yep. The attached version enforces s >= 1.001, which avoids the worse cost
> > of iterating, according to my small tests.
> 
> Seems reasonable.  Pushed with minor documentation editing.

Ah, so we now we can get rid of the TState * being passed around
separately for expression execution, too?

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: CPU costs of random_zipfian in pgbench
Следующее
От: Tom Lane
Дата:
Сообщение: Re: CPU costs of random_zipfian in pgbench