Re: Replication mode - Mailing list pgsql-admin

From Mark Kirkwood
Subject Re: Replication mode
Date
Msg-id a9a09d31-4127-2a19-3bc7-085cf442a310@catalyst.net.nz
Whole thread Raw
In response to Re: Replication mode  (Azimuddin Mohammed <azimeiu@gmail.com>)
Responses Re: Replication mode
List pgsql-admin
On 11/01/18 11:17, Azimuddin Mohammed wrote:

> Thanks!
> But with hot standby my slave will be in read-only mode ...how can I 
> just use my slave as a backup and not do any read operation and let my 
> primary server do all read and write operation. If my primary fails I 
> will do manual failover. The whole idea is to remove any 3rd party 
> open source tools as we are not sure how well they behave and avoid 
> any single point of failure.
>

Whether you have made the standby/slave hot or merely warm doesn't 
really change the 'standby' part - the mechanism is identical (applying 
wal information to keep the it up to date with its primary). In either 
case they cannot be altered by clients (attempting to) connect to them. 
So most folk always make their standbys 'hot' (it is very convenient to 
have the *option* of being able to query them if you need to).

Does that help?

Cheers

Mark


pgsql-admin by date:

Previous
From: scott ribe
Date:
Subject: Re: Replication mode
Next
From: Azimuddin Mohammed
Date:
Subject: Re: Replication mode