Replication in postgres 9.4

1

Good evening everyone. I am trying to do a replication in postgresql 9.4. I made the exact same settings as the files postgres.conf and pg_hba.conf in master and slave , but when I drop master the slave disconnects. I wonder if anyone knows anything about it. In slave I put the following code in 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 goes down.

    
asked by anonymous 06.03.2015 / 01:52

0 answers