This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Edit file postgresql.conf and add the next 3 lines (any where): | |
shared_preload_libraries = 'pg_stat_statements' | |
pg_stat_statements.max = 10000 | |
pg_stat_statements.track = all | |
2) Restart PostgreSQL | |
3) Execute the next command on psql, pgAdmin or similar: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TURN OFF: | |
update ir_mail_server set active = 'f'; | |
update fetchmail_server set active = 'f'; | |
update ir_cron set active = 'f' where function = 'schedule_backup'; | |
TURN ON: | |
update ir_mail_server set active = 't'; | |
update fetchmail_server set active = 't'; | |
update ir_cron set active = 't' where function = 'schedule_backup'; |