skewed-select.sql

text/x-sql

Filename: skewed-select.sql
Type: text/x-sql
Part: 0
Message: Re: pgbench: new feature allowing to launch shell commands
\set naccounts 100000 * :scale

-- This works
\setshell aid skewed-acct.pl :naccounts

-- But this doesn't and should:
-- \setshell :aid skewed-acct.pl :naccounts

SELECT abalance FROM pgbench_accounts WHERE aid = :aid;
\shell echo ::aid :aid selected from :naccounts accounts