Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions adm/mfxxx.init.custom
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ EOF
batch_psql "/tmp/extension.partman" "Adding pg_partman extension" || exit 1
rm -f "/tmp/extension.partman"
fi
if test "${MFBASE_POSTGRESQL_PG_CRON}" = "1"; then
cat >/tmp/extension.pg_cron <<EOF
CREATE EXTENSION pg_cron;
EOF
batch_psql "/tmp/extension.pg_cron" "Adding pg_cron extension" || exit 1
rm -f "/tmp/extension.pg_cron"
fi


echo -n "- Stopping mfbase services..."
Expand Down
5 changes: 5 additions & 0 deletions config/config.ini.custom
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ geohash=0
# Change partman to 1 if you want to create the extension
partman=0

# By default extension pg_cron is not created
# Change pg_cron to 1 if you want to create the extension
# See pg_cron usage here : https://github.com/citusdata/pg_cron
pg_cron=0

##################
##### CIRCUS #####
##################
Expand Down
6 changes: 6 additions & 0 deletions config/postgresql.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,10 @@ logging_collector = off
log_min_messages = warning
unix_socket_directories = '{{MFMODULE_RUNTIME_HOME}}/var'
listen_addresses = '*'
{% if MFBASE_POSTGRESQL_PG_CRON == "1" -%}
shared_preload_libraries = 'pg_stat_statements, pg_cron'
cron.database_name = 'metwork'
cron.timezone = 'GMT'
{% else -%}
shared_preload_libraries = 'pg_stat_statements'
{% endif -%}