Re: enhanced pgbench - Mailing list pgsql-hackers

From Tom Lane
Subject Re: enhanced pgbench
Date
Msg-id 6835.1127922089@sss.pgh.pa.us
Whole thread Raw
In response to Re: enhanced pgbench  (Tatsuo Ishii <ishii@sraoss.co.jp>)
Responses Re: enhanced pgbench
List pgsql-hackers
Tatsuo Ishii <ishii@sraoss.co.jp> writes:
> 2) it requires a location where those scripts reside. $prefix/etc
>    seems appropriate?

I was thinking of just embedding the default scripts as constants in
the program text.  A little bit ugly but saves a lot of headache with
needing to find installed files.

>> Also it seems like it'd be useful if there could be more than one
>> script, so as to test situations where the clients aren't all doing
>> exactly the same thing.

> How do you assign different scripts to different clients?

I'd be happy with either round-robin or random selection of a new script
each time a thread finishes a script.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: \d on database with a lot of tables is slow
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] Proposed patch for sequence-renaming problems