pgbench - allow to specify scale as a size - Mailing list pgsql-hackers

From Fabien COELHO
Subject pgbench - allow to specify scale as a size
Date
Msg-id alpine.DEB.2.20.1802171013110.20813@lancre
Whole thread Raw
Responses Re: pgbench - allow to specify scale as a size
Re: pgbench - allow to specify scale as a size
List pgsql-hackers
After Karel Moppel piece on pgbench scale/size conversion, it occured to 
me that having this as an option would be nice.

https://www.cybertec-postgresql.com/en/a-formula-to-calculate-pgbench-scaling-factor-for-target-db-size/

Here is a attempt at extending --scale so that it can be given a size.

   pgbench -i --scale=124G ...

The approximated database size is also shown in the end-of-run summary.

-- 
Fabien.
Attachment

pgsql-hackers by date:

Previous
From: Arthur Zakirov
Date:
Subject: Re: [HACKERS] Bug in to_timestamp().
Next
From: David Rowley
Date:
Subject: Re: [HACKERS] path toward faster partition pruning