#!/bin/bash LOOPS=5 BINROOT=/home/horiguti/bin DATADIR=/home/horiguti/data/data_work_o2 PREC="numeric(10,2)" killall postgres sleep 3 run() { local BINARY=$1 local PGCTL=$2/bin/pg_ctl if [ "$3" != "" ]; then local SETTING1="set catalog_cache_prune_min_age to \"$3\";" local SETTING2="set catalog_cache_prune_min_age to \"$4\";" local SETTING3="set catalog_cache_prune_min_age to \"$5\";" fi $PGCTL --pgdata=$DATADIR start psql postgres -e <