Fix duplication of -D during pg_ctl restart, from Peter E's patch.

This commit is contained in:
Bruce Momjian 2001-07-11 04:57:34 +00:00
parent 62f5badebf
commit 443db06d84
1 changed files with 3 additions and 2 deletions

View File

@ -8,7 +8,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.20 2001/04/21 11:23:58 petere Exp $
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.21 2001/07/11 04:57:34 momjian Exp $
#
#-------------------------------------------------------------------------
@ -316,7 +316,8 @@ if [ $op = "start" -o $op = "restart" ];then
eval set X "$POSTOPTS"; shift
fi
set X -D "$PGDATA" ${1+"$@"}; shift
# pass environment into new postmaster
export PGDATA
if [ -n "$logfile" ]; then
"$po_path" "$@" </dev/null >>$logfile 2>&1 &