Le 2013-06-07 à 07:00, François Beausoleil a écrit :
Okay, here's my new recovery.conf: standby_mode = on restore_command = '/usr/local/omnipitr/bin/omnipitr-restore -D /var/lib/postgresql/9.1/main/ --source gzip=/var/backups/seevibes/wal/dbanalytics.production/ --remove-unneeded --temp-dir /var/tmp/omnipitr -l /var/log/omnipitr/restore.log --error-pgcontroldata hang --pgcontroldata-path /usr/lib/postgresql/9.1/bin/pg_controldata "%f" "%p"' trigger_file = '/var/lib/postgresql/9.1/main/trigger-promotion' archive_cleanup_command = '/usr/local/omnipitr/bin/omnipitr-cleanup --log /var/log/omnipitr/cleanup.log --archive gzip=/var/backups/seevibes/wal/dbanalytics.production "%r"' Notice trigger_file has a better name. I touch the file using: sudo -u postgres touch /var/lib/postgresql/9.1/main/trigger-promotion and nothing happens: no messages appear in the log, PostgreSQL continues to apply WAL records. I've just retried pg_ctl promote, and that too didn't do anything. I'm really at a loss to explain what happens. Bye, François |
<<attachment: smime.p7s>>