Re: pgbench enhancements

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: pgbench enhancements
Дата
Msg-id 20060727.074241.73653242.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: pgbench enhancements  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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.

I have never thought about it. Seems nice idea. Thanks.

> 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.

Yes, that was my concerning too.
--
Tatsuo Ishii
SRA OSS, Inc. Japan


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: [PATCHES] [PATCH] Provide 8-byte transaction IDs to
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: GUC with units, details