Re: restore_command ignored in recovery.conf on standby - Mailing list pgsql-general

From Stephen Frost
Subject Re: restore_command ignored in recovery.conf on standby
Date
Msg-id 20140414023956.GR2556@tamriel.snowman.net
Whole thread Raw
In response to restore_command ignored in recovery.conf on standby  (Rene Romero Benavides <rene.romero.b@gmail.com>)
Responses Re: restore_command ignored in recovery.conf on standby
List 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

Attachment

pgsql-general by date:

Previous
From: Rene Romero Benavides
Date:
Subject: restore_command ignored in recovery.conf on standby
Next
From: Rene Romero Benavides
Date:
Subject: Re: restore_command ignored in recovery.conf on standby