Re: pgbench enhancements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgbench enhancements
Дата
Msg-id 1879.1153925882@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgbench enhancements  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Ответы Re: pgbench enhancements  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Список pgsql-hackers
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> BTW, running long benchmark using pgbench on BIG tables easily causes
> an integer overflow error in following SQLs:

Right.

> I'm inclined to change abalance, tbalance and bbalance column to
> BIGINT to avoid the error. Opinion?

No.  The problem is that the deltas are invariably positive, which is
not realistic (at least *my* bank balance isn't uniformly increasing :-().
I think the correct fix is just to tweak the range of the randomly
distributed deltas to be plus and minus not always plus.

If you change to bigint then post-change results won't be strictly
comparable to pre-change results because of the difference in execution
costs.
        regards, tom lane


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

Предыдущее
От: Gregory Stark
Дата:
Сообщение: Re: [PATCHES] patch implementing the multi-argument aggregates (SOC project)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Better name/syntax for "online" index creation