#! /bin/sh #------------------------------------------------------------------- # Check to see if postgres_fdw works with pgpool-II. Since # postres_fdw sets search_path to pg_catalog, pgpool_regclass() should # be registered as "pg_catalog.pgpool_regclass". # # Requires PostgreSQL 9.3 or later and contrib/postgres_fdw be # installed. # Fixed in: http://git.postgresql.org/gitweb/?p=pgpool2.git;a=commit;h=5e65429cd325ef2cbec22d114939cf07b3bcfa2e WHOAMI=`whoami` source $TESTLIBS TESTDIR=testdir PG_CTL=$PGBIN/pg_ctl PSQL=$PGBIN/psql rm -fr $TESTDIR mkdir $TESTDIR cd $TESTDIR # create test environment echo -n "creating test environment..." sh $PGPOOL_SETUP -m r -n 2 --no-stop|| exit 1 echo "done." source ./bashrc.ports export PGPORT=$PGPOOL_PORT wait_for_pgpool_startup # create foreign table $PSQL -p 11001 test <11002(pgpool)->11000(PostgreSQL) $PSQL -p 11001 test </dev/null 2>&1 if [ $? = 0 ];then ./shutdownall exit 1 fi ./shutdownall exit 0