summaryrefslogtreecommitdiffstats
path: root/postgresql-setup.in
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql-setup.in')
-rw-r--r--postgresql-setup.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/postgresql-setup.in b/postgresql-setup.in
index a8a1edc..8b30d71 100644
--- a/postgresql-setup.in
+++ b/postgresql-setup.in
@@ -253,6 +253,8 @@ upgrade()
cleanup=false
script_result=1
elif perform_initdb; then
+ $inplace && link_option=--link
+
# After creating the empty new-format database, do the upgrade
run_cmd_as_dbadmin "\
$scls_upgrade_hacks \
@@ -263,7 +265,7 @@ upgrade()
'--new-bindir=$PGENGINE' \
'--old-datadir=$pgdataold' \
'--new-datadir=$pgdata' \
- --link \
+ $link_option \
'--old-port=$PGPORT' '--new-port=$PGPORT' \
@PG_UPGRADE_BIN_USER_OPT@=postgres \
$PGSETUP_PGUPGRADE_OPTIONS" \