Sha256: 70fd216dcaa7fd3f94e68f6c62c91a20449aee5b049d1809dcd70c6f0e8dfd5b

Contents?: true

Size: 1016 Bytes

Versions: 12

Compression:

Stored size: 1016 Bytes

Contents

#! /bin/sh
#-------------------------------------------------------------------
# test script for bug#68
# On memory query cache occasionally segfaults.
#
# Fixed in: http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=d6592ea7a95ed48855332037bca285cc6f6a3547
# requires Java PostgreSQL JDBC driver.
PGBENCH=$PGBENCH_PATH


WHOAMI=`whoami`
source $TESTLIBS
TESTDIR=testdir

rm -fr $TESTDIR
mkdir $TESTDIR
cd $TESTDIR

# create test environment
echo -n "creating test environment..."
sh $PGPOOL_SETUP -m s -n 1 || exit 1
echo "done."

source ./bashrc.ports

export PGPORT=$PGPOOL_PORT

echo "memory_cache_enabled = on" >> etc/pgpool.conf
echo "jdbc.url=jdbc:postgresql://localhost:$PGPOOL_PORT/test" > jdbctest.prop
echo "jdbc.user=$WHOAMI" >> jdbctest.prop
echo "jdbc.password=" >> jdbctest.prop
cp ../jdbctest3.java .
javac jdbctest3.java
export CLASSPATH=.:$JDBC_DRIVER
./startall
wait_for_pgpool_startup

$PGBENCH -i test
java jdbctest3

if [ $? != 0 ];then
	./shutdownall
	exit 1
fi

./shutdownall
exit 0

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
prestogres-0.4.8 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.7 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.6 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.5 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.4 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.3 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.2 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.1 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.4.0 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.3.0 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.2.0 pgpool2/test/regression/tests/058.bug68/test.sh
prestogres-0.1.0 pgpool2/test/regression/tests/058.bug68/test.sh