pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rui DeSousa <rui.desousa@icloud.com>
To: Azimuddin Mohammed <azimeiu@gmail.com>
Cc: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Replication mode
Date: Wed, 10 Jan 2018 20:39:00 -0500
Message-ID: <5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com> (raw)
In-Reply-To: <CAKUuFd6A0kCHQLi6sPUUUJ-_nB1mJOHaNRaG-vRtZQgr8w0-iw@mail.gmail.com>
References: <CAKUuFd5rq4k0HnPYOf0AuUrSRaL-iNwPYFe=e84qmtwrBMG+Gg@mail.gmail.com>
	<ec6b33ee-e6da-bde5-5c42-c15b847a5b30@2ndquadrant.com>
	<eb965246-4bba-a47e-b939-a6279c632c7b@catalyst.net.nz>
	<CAKUuFd72Daabtt4Hyyd7Nr_vUEVkN82Q8wJpdCkCBwC63ZS4yQ@mail.gmail.com>
	<a9a09d31-4127-2a19-3bc7-085cf442a310@catalyst.net.nz>
	<CAKUuFd44ERk+EdgNZuxsiCLObb9-ZwUWVddFWg3R2b_Wtfkacw@mail.gmail.com>
	<97973de0-8de3-a7eb-d702-da7d680e8ccb@catalyst.net.nz>
	<CAKUuFd6A0kCHQLi6sPUUUJ-_nB1mJOHaNRaG-vRtZQgr8w0-iw@mail.gmail.com>


Azimuddin,

Then you should look at the tools you have at hand.  i.e. Using nothing but the OS (FreeBSD/CARP/ZFS), Postgres and some custom scripts.

In the postgres.conf file setup synchronous replication and the application_name in the recovery.conf file:


synchronous_standby_names = '1 (standby, witness)'

    -----------             -----------
   |           |           |           |
   |  primary  |---sync--->|  standby  |
   |   	       |           |           |
    -----------             -----------
         |                        |
         |                        |
          ---------carp-----------
                     |
                     |
                async/sync
                     | 
                     |
                -----------
               |           |
               |  witness  |
               |           |
                -----------

view thread (16+ messages)  latest in thread

Message-ID: <5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com>
Permalink:  ../5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com/
Also on:    postgresql.org/message-id/5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: rui.desousa@icloud.com, azimeiu@gmail.com, mark.kirkwood@catalyst.net.nz, peter.eisentraut@2ndquadrant.com
  Subject: Re: Replication mode
  In-Reply-To: <5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com>
  References: <CAKUuFd5rq4k0HnPYOf0AuUrSRaL-iNwPYFe=e84qmtwrBMG+Gg@mail.gmail.com> <ec6b33ee-e6da-bde5-5c42-c15b847a5b30@2ndquadrant.com> <eb965246-4bba-a47e-b939-a6279c632c7b@catalyst.net.nz> <CAKUuFd72Daabtt4Hyyd7Nr_vUEVkN82Q8wJpdCkCBwC63ZS4yQ@mail.gmail.com> <a9a09d31-4127-2a19-3bc7-085cf442a310@catalyst.net.nz> <CAKUuFd44ERk+EdgNZuxsiCLObb9-ZwUWVddFWg3R2b_Wtfkacw@mail.gmail.com> <97973de0-8de3-a7eb-d702-da7d680e8ccb@catalyst.net.nz> <CAKUuFd6A0kCHQLi6sPUUUJ-_nB1mJOHaNRaG-vRtZQgr8w0-iw@mail.gmail.com> <5A2DCD51-B5A2-4993-9884-6839FF7D610E@icloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox