Subject: pgpool_setup + pg_md5 path
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=877851

--- a/src/test/pgpool_setup
+++ b/src/test/pgpool_setup
@@ -745,10 +745,10 @@ if [ -f $PGPOOLDIR/pcp.conf.sample ];the
     cp $PGPOOLDIR/pcp.conf.sample etc/pcp.conf
 fi
 echo -n "${WHOAMI}:" >> etc/pcp.conf
-$PGPOOL_INSTALL_DIR/bin/pg_md5 $WHOAMI >> etc/pcp.conf
+$PGPOOL_INSTALL_DIR/sbin/pg_md5 $WHOAMI >> etc/pcp.conf
 
 # create pool_passwd
-$PGPOOL_INSTALL_DIR/bin/pg_md5 -m -f etc/pgpool.conf -u $WHOAMI $WHOAMI
+$PGPOOL_INSTALL_DIR/sbin/pg_md5 -m -f etc/pgpool.conf -u $WHOAMI $WHOAMI
 
 # create archive directory
 mkdir archivedir
@@ -808,7 +808,7 @@ export PCPPASSFILE=$PCP_PASS_FILE
 	while [ $n -lt $NUMCLUSTERS ]
 	do
 		echo -n "recovery node $n..."
-		$PGPOOL_INSTALL_DIR/bin/pcp_recovery_node -w -h localhost -p $PCP_PORT -n $n
+		$PGPOOL_INSTALL_DIR/sbin/pcp_recovery_node -w -h localhost -p $PCP_PORT -n $n
 		echo "done."
 		n=`expr $n + 1`
 		if [ $n -lt $NUMCLUSTERS ];then
--- a/src/test/regression/tests/054.postgres_fdw/test.sh
+++ b/src/test/regression/tests/054.postgres_fdw/test.sh
@@ -43,7 +43,7 @@ EOF
 
 # detach node #1 so that pgpool does not access
 # postgres_fdw. Otherwise it will go into an inifinite loop.
-$PGPOOL_INSTALL_DIR/bin/pcp_detach_node -w -h localhost -p $PCP_PORT -n 1
+$PGPOOL_INSTALL_DIR/sbin/pcp_detach_node -w -h localhost -p $PCP_PORT -n 1
 
 if [ $? != 0 ];then
 	echo "pcp_detach_node failed"
--- a/src/tools/pgpool_setup
+++ b/src/tools/pgpool_setup
@@ -745,10 +745,10 @@ if [ -f $PGPOOLDIR/pcp.conf.sample ];the
     cp $PGPOOLDIR/pcp.conf.sample etc/pcp.conf
 fi
 echo -n "${WHOAMI}:" >> etc/pcp.conf
-$PGPOOL_INSTALL_DIR/bin/pg_md5 $WHOAMI >> etc/pcp.conf
+$PGPOOL_INSTALL_DIR/sbin/pg_md5 $WHOAMI >> etc/pcp.conf
 
 # create pool_passwd
-$PGPOOL_INSTALL_DIR/bin/pg_md5 -m -f etc/pgpool.conf -u $WHOAMI $WHOAMI
+$PGPOOL_INSTALL_DIR/sbin/pg_md5 -m -f etc/pgpool.conf -u $WHOAMI $WHOAMI
 
 # create archive directory
 mkdir archivedir
@@ -808,7 +808,7 @@ export PCPPASSFILE=$PCP_PASS_FILE
 	while [ $n -lt $NUMCLUSTERS ]
 	do
 		echo -n "recovery node $n..."
-		$PGPOOL_INSTALL_DIR/bin/pcp_recovery_node -w -h localhost -p $PCP_PORT -n $n
+		$PGPOOL_INSTALL_DIR/sbin/pcp_recovery_node -w -h localhost -p $PCP_PORT -n $n
 		echo "done."
 		n=`expr $n + 1`
 		if [ $n -lt $NUMCLUSTERS ];then
