| From: | Jeff Janes <jeff(dot)janes(at)gmail(dot)com> |
|---|---|
| To: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | pgbench hard coded constants |
| Date: | 2009-09-01 03:06:58 |
| Message-ID: | f67928030908312006o6a4fd53brbab74bea2488e077@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
pgbench has #defines for number of branches, tellers, and accounts. There
are used to populate the tables with -i, but when running actual benchmark
it has values separately hard-coded in the query metacommands. This patch
makes the metacommands obtain their values from the relevant #defines.
It has been tested to the extent that after changing the #define naccounts
downward, without the patch, after running both -i once and the benchmark
itself once leads to inconsistent results (select sum(abalance) from
pgbench_accounts does not equal sum(delta) from pgbench_history), while
with the patch they are equal.
Cheers,
Jeff
| Attachment | Content-Type | Size |
|---|---|---|
| pgbench.patch | text/x-diff | 2.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2009-09-01 07:43:58 | Re: remove flatfiles.c |
| Previous Message | Greg Smith | 2009-09-01 00:54:12 | Re: Linux LSB init script |