Re: restore_command ignored in recovery.conf on standby

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: restore_command ignored in recovery.conf on standby
Дата
Msg-id 20140414023956.GR2556@tamriel.snowman.net
обсуждение исходный текст
Ответ на restore_command ignored in recovery.conf on standby  (Rene Romero Benavides <rene.romero.b@gmail.com>)
Ответы Re: restore_command ignored in recovery.conf on standby
Список pgsql-general
Rene,

* Rene Romero Benavides (rene.romero.b@gmail.com) wrote:
> restore_command='/bin/tar -xzf /db/wal_archives/%f.tar.gz -C %p'
[...]
> I tested the restore_command replacing variables and it works. Any ideas on
> why it isn't being executed?

Are you sure that it isn't being executed and just immediately returning
'1' (meaning 'false'- aka, done with recovery)?

The -C option to tar is supposed to be "change directory" according to
the tar that I've got, and %p is the complete file name that PG wants
the WAL file to be copied to- it's not a directory (it's something like
pg_xlog/RECOVERY_WAL).

    Thanks,

        Stephen

Вложения

В списке pgsql-general по дате отправления:

Предыдущее
От: Rene Romero Benavides
Дата:
Сообщение: restore_command ignored in recovery.conf on standby
Следующее
От: Rene Romero Benavides
Дата:
Сообщение: Re: restore_command ignored in recovery.conf on standby