aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2000-11-27 02:50:17 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2000-11-27 02:50:17 +0000
commit92fd3847799df28e978f83e82ceaf530c77efbd5 (patch)
tree93c3d50799b1aed3c8ddc1a13a30c8eda3da8938
parent9c5327b99be079f9052efaee210f7e517bc48219 (diff)
downloadpostgresql-92fd3847799df28e978f83e82ceaf530c77efbd5.tar.gz
postgresql-92fd3847799df28e978f83e82ceaf530c77efbd5.zip
After going to the trouble of finding where psql lives, seems like
pg_ctl should invoke it from there, not use whatever random psql might (or might not) live in its $PATH.
-rwxr-xr-xsrc/bin/pg_ctl/pg_ctl.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/pg_ctl/pg_ctl.sh b/src/bin/pg_ctl/pg_ctl.sh
index aea4a986909..ae7a1c19a02 100755
--- a/src/bin/pg_ctl/pg_ctl.sh
+++ b/src/bin/pg_ctl/pg_ctl.sh
@@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
-# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.14 2000/11/25 17:17:30 petere Exp $
+# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.15 2000/11/27 02:50:17 tgl Exp $
#
#-------------------------------------------------------------------------
@@ -84,9 +84,9 @@ fi
# Check if needed programs actually exist in path
if [ -x "$self_path/postmaster" ] && [ -x "$self_path/psql" ]; then
- PGPATH=$self_path
+ PGPATH="$self_path"
elif [ -x "$bindir/postmaster" ] && [ -x "$bindir/psql" ]; then
- PGPATH=$bindir
+ PGPATH="$bindir"
else
echo "The programs 'postmaster' and 'psql' are needed by $CMDNAME but" 1>&2
echo "were not found in the directory '$bindir'." 1>&2
@@ -94,7 +94,7 @@ else
exit 1
fi
-po_path=$PGPATH/postmaster
+po_path="$PGPATH/postmaster"
# set default shutdown signal
sig="-TERM"
@@ -287,7 +287,7 @@ if [ $op = "start" -o $op = "restart" ];then
$ECHO_N "Waiting for postmaster to start up.."$ECHO_C
while :
do
- if psql -l >/dev/null 2>&1
+ if "$PGPATH/psql" -l >/dev/null 2>&1
then
break;
else