Re: [PATCH] pgbench: new feature allowing to launch shell commands
Takahiro Itagaki <itagaki.takahiro@oss.ntt.co.jp>
From: Itagaki Takahiro <itagaki.takahiro@oss.ntt.co.jp>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pgsql-hackers@postgresql.org
Date: 2009-08-07T03:55:11Z
Lists: pgsql-hackers
Michael Paquier <michael.paquier@gmail.com> wrote: > > Here is a short patch implementing a new feature in pgbench so as to allow > > shell commands to be launched in a transaction file of pgbench. > > \shell ls ~/pg_twophase; +1 for \shell command itself, but does the performance fit for your purpose? Spawning a new process is not so cheap, no? -1 for -P option because it is too narrow purpose and 'ls' and '/tmp/' is not portable. We don't need to include your workload because you can use -f FILENAME to run your benchmark script. Regards, --- ITAGAKI Takahiro NTT Open Source Software Center