diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2014-01-21 15:41:35 +0100 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2014-01-21 15:55:42 +0100 |
commit | 6717487c79798cb1f3edd8b7614cb5f9e6f7d467 (patch) | |
tree | 9487a4cb21fa60d7d624fc9ee5304d9086b44082 /postgresql-setup | |
parent | e9ece3556200013501706065351f1d850cdd603b (diff) | |
download | postgresql-setup-6717487c79798cb1f3edd8b7614cb5f9e6f7d467.tar.gz postgresql-setup-6717487c79798cb1f3edd8b7614cb5f9e6f7d467.tar.xz postgresql-setup-6717487c79798cb1f3edd8b7614cb5f9e6f7d467.zip |
postgresql-setup: add PGSETUP_PGUPGRADE_OPTIONS
This allows user to use something like
PGSETUP_PGUPGRADE_OPTIONS="-o '-B 5MB'" to work-around badly set
kernel.shmax value.
Version: 9.3.2-6
Diffstat (limited to 'postgresql-setup')
-rwxr-xr-x[-rw-r--r--] | postgresql-setup | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/postgresql-setup b/postgresql-setup index 8a56028..b30550a 100644..100755 --- a/postgresql-setup +++ b/postgresql-setup @@ -48,12 +48,16 @@ Available operation mode: e.g. from 9.1 to 9.2. Environment: - PGSETUP_INITDB_OPTIONS Options carried by this variable are passed to - subsequent call of \`initdb\` binary (see man - initdb(1)). This variable is used also during - 'upgrade' mode because the new cluster is actually - re-initialized from the old one. - PGSETUP_DEBUG Set to '1' if you want to see debugging output." + PGSETUP_INITDB_OPTIONS Options carried by this variable are passed to + subsequent call of \`initdb\` binary (see man + initdb(1)). This variable is used also during + 'upgrade' mode because the new cluster is actually + re-initialized from the old one. + PGSETUP_PGUPGRADE_OPTIONS Options in this variable are passed next to the + subsequent call of \`pg_upgrade\`. For more info + about possible options please look at man + pg_upgrade(1). + PGSETUP_DEBUG Set to '1' if you want to see debugging output." # note that these options are useful at least for help2man processing case "$1" in @@ -212,7 +216,9 @@ upgrade(){ '--new-datadir=$PGDATA' \ --link \ '--old-port=$PGPORT' '--new-port=$PGPORT' \ - --user=postgres" >> "$PGUPLOG" 2>&1 < /dev/null + --user=postgres \ + $PGSETUP_PGUPGRADE_OPTIONS" \ + >> "$PGUPLOG" 2>&1 < /dev/null if [ $? -ne 0 ]; then # pg_upgrade failed script_result=1 |