Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dtwxn-0008LY-P5 for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Sep 2017 14:23:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dtwxn-0001TI-7M for pgsql-bugs@arkaria.postgresql.org; Mon, 18 Sep 2017 14:23:55 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtwxm-0001SP-7n for pgsql-bugs@postgresql.org; Mon, 18 Sep 2017 14:23:54 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dtwxg-0003NU-El for pgsql-bugs@postgresql.org; Mon, 18 Sep 2017 14:23:52 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id F154A20D9F; Mon, 18 Sep 2017 10:23:47 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Mon, 18 Sep 2017 10:23:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=V/Ydp6RnqDzXHN6wElyYz5lY/nV0UlJhs8fun8LTXaU=; b=VyxI6/oh GuHY+2cSej/478tkPSLVCivRnLIdUeRMT+TAQU/5v89h6qZL9LFWVUR0Ytgr8Ku8 CjqqbjlUuNbhj7Nzgxj9JkJUftjzjpJX2z6/dbuuhWRplZ82GytrKK/Sa2x/uTR/ MA+klDu0Ui3jKdvKJvguiOAocsg6w5spJwpwyRJBFHvzRnuYL50vMpBtMmOOnynQ 5sqSYZZoBGTzXmh3wCCSV4M7dqrYIGgoIZGFCMk3HulBx4ZQn5A43UzBeShIBpm9 Tpw83JVkcUF7NjsytNFaIMBd1tCdAtFXwzkhljFdlEjCNtBFAvyMaHOMl30pcEn9 OIpyaO4ZpToSaA== X-ME-Sender: X-Sasl-enc: kW42a2fxWRXVo8TgumiKNAd0CkxIy8IY2wA4LM5iBtrB 1505744627 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id A11E07F9D2; Mon, 18 Sep 2017 10:23:47 -0400 (EDT) Subject: Re: BUG #14785: Logical replication does not work after adding a column. Bug? From: Peter Eisentraut To: Andres Freund References: <20170820191720.1454.19868@wrigleys.postgresql.org> <14aeb673-fded-e9dd-9e90-f04908f9eadf@2ndquadrant.com> <20170822193418.drjntpluvcidfqyf@alap3.anarazel.de> <4dfb4e26-9542-85d6-ff61-9e7080796b0e@2ndquadrant.com> <20170823163151.5dankkw7z72ltmvw@alap3.anarazel.de> <020d1ec1-70d6-a4e9-f7f6-ab7eed8f5985@2ndquadrant.com> <20170823213949.g7wpurzt6hbi3e5h@alap3.anarazel.de> Cc: yxq@o2.pl, pgsql-bugs@postgresql.org Organization: 2ndQuadrant Message-ID: <03e54401-2ea1-fa0c-3eec-54b6b930e225@2ndquadrant.com> Date: Mon, 18 Sep 2017 10:23:47 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit 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 On 9/13/17 09:46, Peter Eisentraut wrote: > On 8/23/17 17:39, Andres Freund wrote: >> I think we could actually kind of solve this by just ignoring pg_temp* >> tables in the output plugin. Given we don't do DDL replication at this >> point, that seems good enough. "all" we need is a way to make sure we're >> not confusing the pg_temp* tables with a table the user has declared as >> pg_temp - but we could check subscription state for that? > > How about this patch? There is some heuristic element in there, but it > seems better than failing as we currently do. Thoughts on this patch? Might be good to include in PG10. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs