#!/bin/sh clear su - postgres -c "/usr/local/pgsql/bin/createdb test_uq" > /dev/null su - postgres -c "/usr/local/pgsql/bin/psql -d test_uq -f /tmp/pgsql_bug_create.sql" 1>/dev/null 2>/dev/null su - postgres -c "/usr/local/pgsql/bin/psql -d test_uq -f /tmp/pgsql_bug_testcase.sql" su - postgres -c "/usr/local/pgsql/bin/dropdb test_uq" > /dev/null