Re: [PATCH] pgbench: new feature allowing to launch shell commands - Mailing list pgsql-hackers

From Itagaki Takahiro
Subject Re: [PATCH] pgbench: new feature allowing to launch shell commands
Date
Msg-id 20090807124716.97A0.52131E4D@oss.ntt.co.jp
Whole thread Raw
In response to Re: [PATCH] pgbench: new feature allowing to launch shell commands  (Michael Paquier <michael.paquier@gmail.com>)
Responses Re: [PATCH] pgbench: new feature allowing to launch shell commands
List 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




pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] pgbench: new feature allowing to launch shell commands
Next
From: Alvaro Herrera
Date:
Subject: Re: [PATCH] pgbench: new feature allowing to launch shell commands