FS#12432 - [postgresql] Specifying options to initdb in /etc/conf.d/postgresql
Attached to Project:
Arch Linux
Opened by Sergey Samokhin (Myav) - Friday, 12 December 2008, 21:39 GMT
Last edited by Dan Griffiths (Ghost1227) - Thursday, 11 February 2010, 00:03 GMT
Opened by Sergey Samokhin (Myav) - Friday, 12 December 2008, 21:39 GMT
Last edited by Dan Griffiths (Ghost1227) - Thursday, 11 February 2010, 00:03 GMT
|
Details
It would be nice if we could specify options to initdb
without having to edit /etc/rc.d/postgresql directly. Good
way to do that is to define a variable (say INITOPTS) with
options to inidb in /etc/conf.d/postgresql and use it then
inside /etc/rc.d/postgresql:
## /etc/conf.d/postgresql # ... # It's just for example. By default the variably should be empty: INITOPTS= INITOPTS='-W -A md5' # ... ## /etc/rc.d/postgresql # ... su - postgres -c "/usr/bin/initdb $INITOPTS -D $PGROOT/data" # ... I beleive that specifying custom init options is common enough to have separate file with variable to use. Current postgresql-8.3.5-1 package doesn't have such a feature. |
This task depends upon
Closed by Dan Griffiths (Ghost1227)
Thursday, 11 February 2010, 00:03 GMT
Reason for closing: Implemented
Thursday, 11 February 2010, 00:03 GMT
Reason for closing: Implemented
INITOPTS='-E UNICODE' as default would be nice.
i think INITOPTS="--locale $LANG" would be even better.