pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Wiencek <jwiencek3@comcast.net>
To: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Cc: mallikarjun t <mallit333@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: soumitra bhandary <soumitra.bhandary@hotmail.com>
Cc: Pgsql-admin <pgsql-admin@lists.postgresql.org>
Subject: Re: Streaming replication issue
Date: Thu, 5 Sep 2019 11:23:51 -0500
Message-ID: <E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net> (raw)
In-Reply-To: <CAC+AXB2wBxN1kKGWZZdmhKjsEpUxdpa6wxdzt-gU2zVQ7tMHiA@mail.gmail.com>
References: <CAOA8XiVtkOXOEXQzq0B7Cg-zFwwqa6+-BfyaiLgn9CiWL_-_pw@mail.gmail.com>
	<CAKoxK+6egeUv-zzMBXfHuFAZtr=X5ZgRZsvnhk_O821ndsrv+A@mail.gmail.com>
	<CAOA8XiWAcatiS7EDLcmO5frkwj9AncC+JB_DBXfrBWowrajN+w@mail.gmail.com>
	<BMXPR01MB36398157DAFCFBC93CA89C7DE0BB0@BMXPR01MB3639.INDPRD01.PROD.OUTLOOK.COM>
	<CAOA8XiU+MYk2JCjTdTvUzApDM2hz_5m700=MTDLkcOUZp99bBw@mail.gmail.com>
	<CAKoxK+6OR4qN4LH9yhJd2mYzEfGpQXcLhKFSjv2FMNEY4CE0eg@mail.gmail.com>
	<CAOA8XiUOnd-0qYjNdkuG6Y+UdB4jV+ExTpfhQy6nfSjKR1ui-A@mail.gmail.com>
	<CAKoxK+6RTkuQ5qE-_Fh1_q0Qy0oyc+JKwE3iyOoDaLHCUWtA4g@mail.gmail.com>
	<CAOA8XiUp1DaEC4VFeE-G3N2=Ck4goM-VZvr9oEM--YQeG_QUKQ@mail.gmail.com>
	<CAKoxK+6BMswm0oayBzHWUuDzkG+M0zR3HfOi1NEu+X9j-pQnBg@mail.gmail.com>
	<CAOA8XiX-iKs4XqTEMOfRWMtsGRV0S8O6ED0+EB1Y4VuGMsNRhw@mail.gmail.com>
	<E28CBC70-3EB7-45AB-B3BC-882FEBDCECCF@comcast.net>
	<CAC+AXB2wBxN1kKGWZZdmhKjsEpUxdpa6wxdzt-gU2zVQ7tMHiA@mail.gmail.com>

Multi master requires that you identify one node as the primary node.   Data is populated to the remote node via an initial snapshot.   Tables on the remote node cannot exist when you run the initial snapshot.  The snapshot will create all objects on the remote node .  


xDB(multi-master replication) will not merge two databases together.

Sent from my iPad

> On Sep 5, 2019, at 11:08 AM, Juan José Santamaría Flecha <juanjo.santamaria@gmail.com> wrote:
> 
>> On Thu, Sep 5, 2019 at 5:54 PM John Wiencek <jwiencek3@comcast.net> wrote:
>> 
>> H
>> 
>> When you set up streaming replication your read-only replica should be created using pg_basebackup.
>> 
>> for example;
>> 
>> Run this from the streamed/slave server.   Set variable $PGDATA.  Make sure directory structure exits and is empty( no file in $PGDATA on slave server)
>> 
>> pg_basebackup --pgdata=$PGDATA --label=standby --host 10.64.98.199--usernamerepuser --wal-method=stream --write-recovery-conf.
>> 
>> 
>> Your PGDATA direetory on the streamed/salve server needs to be empty.   The basebackup will copy ALL files from the master to the slave.   This would include PostgreSQL.conf , pg_hba.conf and all associated files for the databases.
>> 
>> Therefore the streaming/slave server will be EXACTLY the same as the master.   Same users, same port, same data.
>> 
> 
> I am under impression that what you are trying to do is merging two
> Primary databases. If that is what you actually want then Streaming
> Replication is not going to work for you. Maybe you should look for
> some Multi-master replication tool, which is probably the way to go if
> you want to mix PostgreSQL and EDB Advanced Server anyway.
> 
> Regards,
> 
> Juan José Santamaría Flecha






view thread (22+ messages)  latest in thread

Message-ID: <E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net>
Permalink:  ../E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net/
Also on:    postgresql.org/message-id/E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net

 · 

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: jwiencek3@comcast.net, juanjo.santamaria@gmail.com, mallit333@gmail.com, fluca1978@gmail.com, soumitra.bhandary@hotmail.com
  Subject: Re: Streaming replication issue
  In-Reply-To: <E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net>
  References: <CAOA8XiVtkOXOEXQzq0B7Cg-zFwwqa6+-BfyaiLgn9CiWL_-_pw@mail.gmail.com> <CAKoxK+6egeUv-zzMBXfHuFAZtr=X5ZgRZsvnhk_O821ndsrv+A@mail.gmail.com> <CAOA8XiWAcatiS7EDLcmO5frkwj9AncC+JB_DBXfrBWowrajN+w@mail.gmail.com> <BMXPR01MB36398157DAFCFBC93CA89C7DE0BB0@BMXPR01MB3639.INDPRD01.PROD.OUTLOOK.COM> <CAOA8XiU+MYk2JCjTdTvUzApDM2hz_5m700=MTDLkcOUZp99bBw@mail.gmail.com> <CAKoxK+6OR4qN4LH9yhJd2mYzEfGpQXcLhKFSjv2FMNEY4CE0eg@mail.gmail.com> <CAOA8XiUOnd-0qYjNdkuG6Y+UdB4jV+ExTpfhQy6nfSjKR1ui-A@mail.gmail.com> <CAKoxK+6RTkuQ5qE-_Fh1_q0Qy0oyc+JKwE3iyOoDaLHCUWtA4g@mail.gmail.com> <CAOA8XiUp1DaEC4VFeE-G3N2=Ck4goM-VZvr9oEM--YQeG_QUKQ@mail.gmail.com> <CAKoxK+6BMswm0oayBzHWUuDzkG+M0zR3HfOi1NEu+X9j-pQnBg@mail.gmail.com> <CAOA8XiX-iKs4XqTEMOfRWMtsGRV0S8O6ED0+EB1Y4VuGMsNRhw@mail.gmail.com> <E28CBC70-3EB7-45AB-B3BC-882FEBDCECCF@comcast.net> <CAC+AXB2wBxN1kKGWZZdmhKjsEpUxdpa6wxdzt-gU2zVQ7tMHiA@mail.gmail.com> <E6DF68FC-0222-49A7-8D35-547531224D61@comcast.net>

* 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