postgresql-setup: add $PGSETUP_INITDB_OPTIONS
Users may now specify by this variable parameters passed to initdb run. See `man initdb(1)`. This may help if user gets stacked with bug #1007802. Related: #1007802 Version: 9.3.2-4
This commit is contained in:
parent
083dd21498
commit
2f213ebd1d
@ -80,8 +80,10 @@ perform_initdb(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize the database
|
# Initialize the database
|
||||||
$SU -l postgres -c "$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'" \
|
initdbcmd="$PGENGINE/initdb --pgdata='$PGDATA' --auth='ident'"
|
||||||
>> "$PGLOG" 2>&1 < /dev/null
|
initdbcmd+=" $PGSETUP_INITDB_OPTIONS"
|
||||||
|
|
||||||
|
$SU -l postgres -c "$initdbcmd" >> "$PGLOG" 2>&1 < /dev/null
|
||||||
|
|
||||||
# Create directory for postmaster log files
|
# Create directory for postmaster log files
|
||||||
mkdir "$PGDATA/pg_log"
|
mkdir "$PGDATA/pg_log"
|
||||||
|
@ -1125,6 +1125,7 @@ fi
|
|||||||
%changelog
|
%changelog
|
||||||
* Mon Jan 13 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-4
|
* Mon Jan 13 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-4
|
||||||
- postgresql-setup(upgrade): don't stop old server when it can not be started
|
- postgresql-setup(upgrade): don't stop old server when it can not be started
|
||||||
|
- postgresql-setup(initdb, upgrade): add $PGSETUP_INITDB_OPTIONS
|
||||||
|
|
||||||
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-3
|
* Fri Jan 10 2014 Pavel Raiskup <praiskup@redhat.com> - 9.3.2-3
|
||||||
- build with -O3 on ppc64 (private #1051075)
|
- build with -O3 on ppc64 (private #1051075)
|
||||||
|
Loading…
Reference in New Issue
Block a user