Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkGQH-0000ry-UY for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 21:09:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dkGQH-0005WF-H9 for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 21:09:17 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dkGBv-00019Y-CL for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 20:54:27 +0000 Received: from mx-out.tlen.pl ([193.222.135.140]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dkGBn-0008K4-UC for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 20:54:26 +0000 Received: (wp-smtpd smtp.tlen.pl 16301 invoked from network); 22 Aug 2017 22:54:17 +0200 Received: from localhost.localdomain (HELO localhost) ([127.0.0.1]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with SMTP for ; 22 Aug 2017 22:54:17 +0200 Content-Type: multipart/alternative; boundary="2IVTHHGIMJRYFVBFWLONMnhgwp" MIME-Version: 1.0 User-Agent: GWP-Draft Date: Tue, 22 Aug 2017 22:54:17 +0200 Subject: =?UTF-8?Q?Odp=3A_Re=3A_=5BBUGS=5D_BUG_=2314785=3A_Logical_replication_does_not_work_after_adding_a_column=2E_Bug=3F?= Message-ID: <8950ca33bcb04873991340938e88ab67@grupawp.pl> In-Reply-To: <20170822193418.drjntpluvcidfqyf@alap3.anarazel.de> References: <20170822193418.drjntpluvcidfqyf@alap3.anarazel.de> From: yxq To: =?UTF-8?Q?pgsql-bugs=40postgresql=2Eorg?= X-FactoryStamp: H--- X-Originator: 95.160.80.15 X-WP-MailID: 0c44c822180978985ad5055a11d95901 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000010 [cVM0] List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --2IVTHHGIMJRYFVBFWLONMnhgwp Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Dnia 22 sierpnia 2017 21:34 Andres Freund <andres@anarazel.de> napisa= =C5=82(a): Hi, On 2017-08-22 15:22:41 -0400, Peter Eisentraut wrote: Wh= en you add a column on the publication side, you also need to add it on th= e subscription side, otherwise there is nowhere to put the data. Op's= sql shows that that's done. The problem is the table rewrite not bein= g handled nicely by logical decoding / replication. - Andres Yes, I ad= ded the column first to the Slave, then added to the Master. I also checke= d the reverse case: I added the column first to the Master, then added to t= he Slave. The problem is the same. yxq=0D --2IVTHHGIMJRYFVBFWLONMnhgwp Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=UTF-8
Dnia 22 sierpnia 2017 21:34 Andres Freund <andres@anarazel.de> n= apisa=C5=82(a):
<= div id=3D"gwp560f0254">
Hi,

On 2017-08-22 = 15:22:41 -0400, Peter Eisentraut wrote:
When you add a column on the publication side, you also need to = add it
on the subscription side, otherwise there is nowhere t= o put the data.

Op's sql shows th= at that's done. The problem is the table rewrite not
being ha= ndled nicely by logical decoding / replication.

- Andres


=
Yes, I added the column first to the Slave, then added to the Master.<= br>
I also checked the reverse case: I added the column first to = the Master, then added to the Slave. The problem is the same.

yxq
--2IVTHHGIMJRYFVBFWLONMnhgwp--