Skip to content

Commit 443db06

Browse files
committed
Fix duplication of -D during pg_ctl restart, from Peter E's patch.
1 parent 62f5bad commit 443db06

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/pg_ctl/pg_ctl.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#
99
#
1010
# IDENTIFICATION
11-
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.20 2001/04/21 11:23:58 petere Exp $
11+
# $Header: /cvsroot/pgsql/src/bin/pg_ctl/Attic/pg_ctl.sh,v 1.21 2001/07/11 04:57:34 momjian Exp $
1212
#
1313
#-------------------------------------------------------------------------
1414

@@ -316,7 +316,8 @@ if [ $op = "start" -o $op = "restart" ];then
316316
eval set X "$POSTOPTS"; shift
317317
fi
318318

319-
set X -D "$PGDATA" ${1+"$@"}; shift
319+
# pass environment into new postmaster
320+
export PGDATA
320321

321322
if [ -n "$logfile" ]; then
322323
"$po_path" "$@" </dev/null >>$logfile 2>&1 &

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy