Prevent pg_ctl restart from adding -D datadir multiple times.
This commit is contained in:
parent
288e0404b8
commit
4d608ac197
@ -8,7 +8,7 @@
|
||||
#
|
||||
#
|
||||
# IDENTIFICATION
|
||||
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.36 2003/08/14 18:56:41 tgl Exp $
|
||||
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.36.4.1 2004/08/28 21:10:00 momjian Exp $
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
|
||||
@ -238,6 +238,11 @@ if [ "$op" = "reload" ];then
|
||||
wait=no
|
||||
fi
|
||||
|
||||
# Prevent duplicate of -D flags on each restart
|
||||
if [ "$op" = "restart" ];then
|
||||
PGDATAOPTS=""
|
||||
fi
|
||||
|
||||
DEFPOSTOPTS=$PGDATA/postmaster.opts.default
|
||||
POSTOPTSFILE=$PGDATA/postmaster.opts
|
||||
PIDFILE=$PGDATA/postmaster.pid
|
||||
|
Loading…
x
Reference in New Issue
Block a user