Replication in postgres 9.4

Asked

Viewed 292 times

1

Good evening guys. I’m trying to do a replication on postgresql 9.4. I made the settings exactly the same as the files postgres.conf and pg_hba.conf in the master and in the slave, only when I drop the master the slave disconnects. I would like to know if anyone knows anything about it. No slave I put the following code on recovery.conf:

standby_mode = 'on'
primary_conninfo = 'host = IPMASTER port = MASTER user=TESTE password=TESTE1'
restore_command = 'cp / PGDATA / archive /% f "% p"' 
trigger_file =  '/tmp/psql.trigger'

I wonder why the connection drops.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.