Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5uYB-0001HQ-Hd for pgsql-admin@arkaria.postgresql.org; Thu, 05 Sep 2019 16:23:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5uY9-0003Lv-Ll for pgsql-admin@arkaria.postgresql.org; Thu, 05 Sep 2019 16:23:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5uY9-0003JQ-95 for pgsql-admin@lists.postgresql.org; Thu, 05 Sep 2019 16:23:57 +0000 Received: from resqmta-ch2-03v.sys.comcast.net ([2001:558:fe21:29:69:252:207:35]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i5uY6-0008IY-QY for pgsql-admin@lists.postgresql.org; Thu, 05 Sep 2019 16:23:56 +0000 Received: from resomta-ch2-08v.sys.comcast.net ([69.252.207.104]) by resqmta-ch2-03v.sys.comcast.net with ESMTP id 5sr9i7dlcO4k25uY5iCInF; Thu, 05 Sep 2019 16:23:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1567700633; bh=2oxunMNeycHakDuFj3YRFU9dg4XAKks76UjxjkfNQN4=; h=Received:Received:Content-Type:Mime-Version:Subject:From:Date: Message-Id:To; b=wD758tGuMt41xkGIggAEeRwiPWuoFRAyY6x2UFXLEXE1c1/3KRcOHJeLTJFiBzSLS 9AQELHJvyovDdfXelJnsPHDaZSwZHYIelXWBewvTIpKW3b0QTAntdlHKN6f9Xb1Vl0 ThrdiV/MqscGNZONrFiK/ccbDPXXs56C1NF4SYKXKrEZ9cFfaqXMLBYBN7AWEuaAoh qGQjTZNFc7BZYbkJNSemnUzYLTm4nxHPVYBD52EzV0v5UDUFP9np8Lvxemj7PsYzEd 5SdObUa6I3eZ/vzfDiAtgJopU2fWDoCDkEo1s2quLF9SE4P1H0Sy2/gzLYAp6cO5Ym 33j4UqpIEm7xw== Received: from [IPv6:2601:240:d080:12b4:506c:9877:8ae9:1931] ([IPv6:2601:240:d080:12b4:506c:9877:8ae9:1931]) by resomta-ch2-08v.sys.comcast.net with ESMTPA id 5uY3i3moaLQkL5uY4i78WU; Thu, 05 Sep 2019 16:23:52 +0000 X-Xfinity-VMeta: sc=-100;st=legit Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: Streaming replication issue From: John Wiencek X-Mailer: iPad Mail (16G102) In-Reply-To: Date: Thu, 5 Sep 2019 11:23:51 -0500 Cc: mallikarjun t , Luca Ferrari , soumitra bhandary , Pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: References: To: =?utf-8?Q?Juan_Jos=C3=A9_Santamar=C3=ADa_Flecha?= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 re= mote node cannot exist when you run the initial snapshot. The snapshot will= create all objects on the remote node . =20 xDB(multi-master replication) will not merge two databases together. Sent from my iPad > On Sep 5, 2019, at 11:08 AM, Juan Jos=C3=A9 Santamar=C3=ADa Flecha wrote: >=20 >> On Thu, Sep 5, 2019 at 5:54 PM John Wiencek wrote= : >>=20 >> H >>=20 >> When you set up streaming replication your read-only replica should be cr= eated using pg_basebackup. >>=20 >> for example; >>=20 >> Run this from the streamed/slave server. Set variable $PGDATA. Make su= re directory structure exits and is empty( no file in $PGDATA on slave serve= r) >>=20 >> pg_basebackup --pgdata=3D$PGDATA --label=3Dstandby --host 10.64.98.199--u= sernamerepuser --wal-method=3Dstream --write-recovery-conf. >>=20 >>=20 >> Your PGDATA direetory on the streamed/salve server needs to be empty. T= he 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 data= bases. >>=20 >> Therefore the streaming/slave server will be EXACTLY the same as the mast= er. Same users, same port, same data. >>=20 >=20 > 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. >=20 > Regards, >=20 > Juan Jos=C3=A9 Santamar=C3=ADa Flecha