#!/bin/bash

while true
do
echo 'create table foo
(
a int4 primary key,
b int4 unique,
c text
);' | psql
pgbench -f upsert.sql -c 60 -T 2 -n
psql -c 'drop table foo;'
done
