Re: pgbench enhancements

From: Tatsuo Ishii <ishii(at)sraoss(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pgbench enhancements
Date: 2006-07-26 11:24:19
Message-ID: 20060726.202419.85390688.t-ishii@sraoss.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> I have committed contrib/pgbench enhanments contributed by Tomoaki
> Sato from SRA OSS, Inc. Japan.
>
> - predefined variable "tps"
> The value of variable tps is taken from the scaling factor
> specified by -s option.
>
> - -D option
> Variable values can be defined by -D option.
>
> - \set command now allows arithmetic calculations.
>
> enjoy,

BTW, running long benchmark using pgbench on BIG tables easily causes
an integer overflow error in following SQLs:

update accounts set abalance = abalance + :delta where aid = :aid;

update tellers set tbalance = tbalance + :delta where tid = :tid;

update branches set bbalance = bbalance + :delta where bid = :bid;

I'm inclined to change abalance, tbalance and bbalance column to
BIGINT to avoid the error. Opinion?
--
Tatsuo Ishii
SRA OSS, Inc. Japan

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2006-07-26 12:00:56 Re: Better name/syntax for "online" index creation
Previous Message Paul Silveira 2006-07-26 11:21:13 Re: Better name/syntax for "online" index creation