Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dkEwV-0003uy-SA for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 19:34:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dkEwV-0001Hq-1N for pgsql-bugs@arkaria.postgresql.org; Tue, 22 Aug 2017 19:34:27 +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 1dkEwT-0001HG-AJ for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 19:34:25 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dkEwQ-0006Wv-5j for pgsql-bugs@postgresql.org; Tue, 22 Aug 2017 19:34:24 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 6C69620C45; Tue, 22 Aug 2017 15:34:20 -0400 (EDT) Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 22 Aug 2017 15:34:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc:x-sasl-enc; s=fm1; bh=mXWq8TAm+XMFigiaUX uOAmSqBkHy9PSPJIpKkC39O2o=; b=BdGBp4VNR+2vngTNZeqchj6UMMPoG4BSo7 afU3qCLfAEeRHJuaY2/oxF4Av62Yrf1dou6XTddrRESS29taeZxBazxyOCfX5Mod JCJNEnKvyiwdsMBCmpH/2fzIdKM919s/4D716+v5HyBs2Oz25Z6DAAQJrWfCcAke GPIa/KxPrCmuR9NxVVsQK9O8Ncm1DIj+pl3MtM8xbSFSGzzss6NBtqRpqAE92BH7 jiWJcVBLsh6OX2QwnnP+QcweO8zhk0rF8aCnd9JOOdkRvWCby4mLxfDCazbsEofc aEbQhrOHkcAz0G5xS5EtMAo+G2C77SALcxHWi+scOYL0h0FDDROw== X-ME-Sender: X-Sasl-enc: QqO+rW/RzsZ1887Jbu3kJ2rou1i9e2ZbmRWlGWNLx6is 1503430460 Received: from intern.anarazel.de (unknown [208.72.138.107]) by mail.messagingengine.com (Postfix) with ESMTPA id 25488240AF; Tue, 22 Aug 2017 15:34:20 -0400 (EDT) Date: Tue, 22 Aug 2017 12:34:18 -0700 From: Andres Freund To: Peter Eisentraut Cc: yxq@o2.pl, pgsql-bugs@postgresql.org Subject: Re: BUG #14785: Logical replication does not work after adding a column. Bug? Message-ID: <20170822193418.drjntpluvcidfqyf@alap3.anarazel.de> References: <20170820191720.1454.19868@wrigleys.postgresql.org> <14aeb673-fded-e9dd-9e90-f04908f9eadf@2ndquadrant.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <14aeb673-fded-e9dd-9e90-f04908f9eadf@2ndquadrant.com> 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 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 to put the data. Op's sql shows that that's done. The problem is the table rewrite not being handled nicely by logical decoding / replication. - Andres -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs