Re: Logical Replication in Postgres 10.4

From: pavan95 <pavan(dot)postgresdba(at)gmail(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Logical Replication in Postgres 10.4
Date: 2018-08-10 05:06:03
Message-ID: 1533877563199-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi all,

I have a doubt in Logical Replication feature in 10.4. I have 2 servers
where in which I have configured "Logical Replication" between two databases
source and destination.

*In the Source*:
Before creating publication on publisher I have create 2 tables on both
publisher & subscriber. But only publisher contains data.

Later, I have create publication for all tables using the below command:
CREATE PUBLICATION mypub FOR ALL TABLES;

*In the Target*:
In the subscriber server, I have created a subscription for that
publication.

Suddenly within no time the data got replicated(happy for that).

The actual problem now aroused. I again went on creating a new table on the
primary but it was not part of my publication(surprised). So it was not
replicated.

But from the documentation "FOR ALL TABLES" option the futurely created
tables are also part of the replication which was not (3'rd table) in my
case.

What went wrong? Kindly help me out!!!

Thanks in Advance!

Regards,
Pavan

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-admin-f2076596.html

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Achilleas Mantzios 2018-08-10 06:42:37 Re: Logical Replication in Postgres 10.4
Previous Message Cogan, Mark Contractor, NRL Code 3030 2018-08-09 21:05:04 pg_upgrade doesn't work?