Thanks Donovan!!<br><br>I got information about alloptions of pgbench, but I didn found information about how can install this tool.<br><br>I have installed postgresql9.1 and postgis 2.0 in a ubuntu 10.04 linux machine.<br>
<br>But the question is that I don't know how can install pgbench. I did "locate contrib" and this was the result:<br><br>/usr/share/doc/postgresql-contrib-9.1<br>/usr/share/doc/postgresql-contrib-9.1/autoinc.example<br>
/usr/share/doc/postgresql-contrib-9.1/changelog.Debian.gz<br>/usr/share/doc/postgresql-contrib-9.1/copyright<br>/usr/share/doc/postgresql-contrib-9.1/insert_username.example<br>/usr/share/doc/postgresql-contrib-9.1/moddatetime.example<br>
/usr/share/doc/postgresql-contrib-9.1/refint.example<br>/usr/share/doc/postgresql-contrib-9.1/timetravel.example<br>/var/cache/apt/archives/postgresql-contrib-9.1_9.1.7-0ubuntu12.04_i386.deb<br>/var/lib/dpkg/info/postgresql-contrib-9.1.list<br>
/var/lib/dpkg/info/postgresql-contrib-9.1.md5sums<br>/var/lib/dpkg/info/postgresql-contrib-9.1.postinst<br>/var/lib/dpkg/info/postgresql-contrib-9.1.prerm<br><br>Donovan, Could you help me with this? <span id="result_box" class="short_text" lang="en"><span class="hps">What do</span> <span class="hps">I have to do</span><span class="">?</span></span><br>
<br>Thanks!!<br><br>José María<br><br><br><div class="gmail_quote">2013/1/16 Donovan Cameron <span dir="ltr"><<a href="mailto:sault.don@gmail.com" target="_blank">sault.don@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey Jose,<br>
<br>
At least on linux, it's part of the postgresql-contrib package and can<br>
be accessed via CLI.<br>
<br>
Usage:<br>
pgbench [OPTIONS]... [DBNAME]<br>
<br>
Initialization options:<br>
-i invokes initialization mode<br>
-F NUM fill factor<br>
-s NUM scaling factor<br>
<br>
Benchmarking options:<br>
-c NUM number of concurrent database clients (default: 1)<br>
-C establish new connection for each transaction<br>
-D VARNAME=VALUE<br>
define variable for use by custom script<br>
-f FILENAME read transaction script from FILENAME<br>
-j NUM number of threads (default: 1)<br>
-l write transaction times to log file<br>
-M {simple|extended|prepared}<br>
protocol for submitting queries to server (default: simple)<br>
-n do not run VACUUM before tests<br>
-N do not update tables "pgbench_tellers" and "pgbench_branches"<br>
-r report average latency per command<br>
-s NUM report this scale factor in output<br>
-S perform SELECT-only transactions<br>
-t NUM number of transactions each client runs (default: 10)<br>
-T NUM duration of benchmark test in seconds<br>
-v vacuum all four standard tables before tests<br>
<br>
Common options:<br>
-d print debugging output<br>
-h HOSTNAME database server host or socket directory<br>
-p PORT database server port number<br>
-U USERNAME connect as specified database user<br>
--help show this help, then exit<br>
--version output version information, then exit<br>
<br>
Report bugs to <<a href="mailto:pgsql-bugs@postgresql.org">pgsql-bugs@postgresql.org</a>><br>
<br>
If you let the mailing list know what operating system your using for<br>
postgresql then you'll probably get a better answer.<br>
<br>
<br>
<br>
Donovan<br>
<div><div class="h5"><br>
On Wed, Jan 16, 2013 at 8:23 AM, José María <<a href="mailto:jmamuedo@gmail.com">jmamuedo@gmail.com</a>> wrote:<br>
> Help!!<br>
><br>
> I need use pgbench but I don't know how to install and use this tool!!<br>
><br>
> Any idea?<br>
><br>
> Thanks<br>
><br>
</div></div>> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
><br>
_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>
</blockquote></div><br>