I've been running a CakePHP installation on OpenShift for six months. The database is PostgreSQL 9.2, i used to setup the postgresql.conf file via shell, editing postgresql/data/postgresql.conf (there is another postgresql.conf file in postgresql/conf/postgresql.conf that didn't keep the changes after db restarts), after setting up the file for the first time everything was ok until today that i git pushed some changes, restarted the application hence the database, and the application was showing me errors related with database datestyle, verifiyng that the postgresql/data/postgresql.conffile was reset, i tried to change the default configuration but after restarting the application it was overwrited by openshift to its defaults.
I'm using this git repository for the set up https://github.com/BanzaiMan/openshift-cakephp-example-postgresql
Did Openshift changed the way to configure postgresql.conf?
Is there any other way to change postgresql.conf default values?
I need to change
#------------------------------------------------------------------------------
# CLIENT CONNECTION DEFAULTS
#------------------------------------------------------------------------------
# - Locale and Formatting -
datestyle = 'iso, mdy'
lc_messages = 'en_US.utf8'
lc_monetary = 'en_US.utf8'
lc_numeric = 'en_US.utf8'
lc_time = 'en_US.utf8'
default_text_search_config = 'pg_catalog.english'
to this
datestyle = 'iso, dmy'
lc_messages = 'es_BO.utf8'
lc_monetary = 'es_BO.utf8'
lc_numeric = 'es_BO.utf8'
lc_time = 'es_BO.utf8'
default_text_search_config = 'pg_catalog.english'
UPDATE
The issue has been reported: https://bugzilla.redhat.com/show_bug.cgi?id=1123587