This is the default in recent PostgreSQL versions. This change just
makes the script behavior consistent across versions. We can now also
remove some sleep calls to make the tests start faster.
PG_LOG=$LOGDIR/pg.log
pgctl() {
- pg_ctl -o "-p $PG_PORT" -D $PGDATA $@ >>$PG_LOG 2>&1
+ pg_ctl -w -o "-p $PG_PORT" -D $PGDATA $@ >>$PG_LOG 2>&1
}
ulimit -c unlimited
fi
pgctl start
-sleep 5
echo "createdb"
psql -X -p $PG_PORT -l | grep p0 > /dev/null || {
PG_LOG=$LOGDIR/pg.log
pgctl() {
- pg_ctl -o "-p $PG_PORT" -D $PGDATA $@ >>$PG_LOG 2>&1
+ pg_ctl -w -o "-p $PG_PORT" -D $PGDATA $@ >>$PG_LOG 2>&1
}
ulimit -c unlimited
fi
pgctl start
-sleep 5
echo "Creating databases"
psql -X -p $PG_PORT -l | grep p0 > /dev/null || {