Quantcast
Channel: StackExchange Replication Questions
Viewing all articles
Browse latest Browse all 17268

When do I have to use archive_command and when not

$
0
0

I have some doubts about PostgreSQL replication command. I am doing some research and I found severals configurations.

first one is:

archive_mode = on
archive_command = 'cd .'

second one is :

cp -i %p /var/lib/postgresql/9.1/archive/%f'

Then my questions are:

  1. What is the different?
  2. The first one option ( command ) is really strange to me. What do it do?

Viewing all articles
Browse latest Browse all 17268

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>