Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGO6m-0002ku-VC for pgsql-general@arkaria.postgresql.org; Thu, 10 Sep 2020 15:03:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kGO6k-0006Fl-1i for pgsql-general@arkaria.postgresql.org; Thu, 10 Sep 2020 15:03:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGO6j-0006Fe-Pn for pgsql-general@lists.postgresql.org; Thu, 10 Sep 2020 15:03:29 +0000 Received: from wforward3-smtp.messagingengine.com ([64.147.123.22]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGO6f-0000D8-Uf for pgsql-general@postgresql.org; Thu, 10 Sep 2020 15:03:28 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id E0F3B88D; Thu, 10 Sep 2020 11:03:23 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 10 Sep 2020 11:03:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=S8smUPkEKGjVKSUBBXzu1POKeOWYTYScW455v9vnB Qs=; b=VMqSCvmlFfpd1IDw+SFCs1qFju07Z5NGbdut5e45UaQDpNb89p/iFZQz1 86jakWmzADsBM4hkiFbfyN9gx8vByqH7E5rCZYqtowwFwsvYtfiZVfn7NGxU/4vG xROYZNWS8Ypd2lvJNnKwSz5wbuDPV0Qy2DMzDJs93VZ79rPjUEMaNGdN/pJetiAq VQSncAFXkCpnejiPSv56hpdBCFRpPerGJliTGmBb5jSDXhsSCGu99h30WT90DqCu tqd35AWvvkyK+UfSc2CCzInUMCrIsKsH+nLlhjHjhh2YFd0qcBNHtQJxhWMo4Tcb E17cZAE/j0RG4NLNPr76CG98mbb3A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrudehjedgjeekucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtkeertddtfeehnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuggftrfgrthhtvghrnhepgeeileetjeevvdfggeev gedtkedvjedukedvieelgfejhfdvheejkeetgfduvdelnecuffhomhgrihhnpedvnhguqh hurggurhgrnhhtrdgtohhmnecukfhppeekjedrudejjedrjeelrdehleenucevlhhushht vghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvg hnthhrrghuthesvdhnughquhgrughrrghnthdrtghomh X-ME-Proxy: Received: from april.pezone.net (p57b14f3b.dip0.t-ipconnect.de [87.177.79.59]) by mail.messagingengine.com (Postfix) with ESMTPA id 4F2BB328005A; Thu, 10 Sep 2020 11:03:21 -0400 (EDT) Subject: Re: PG13 partitioned table logical replication To: Nicolas Sornin , "pgsql-general@postgresql.org" References: From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <54c6aa94-5e78-854c-f2d8-dc6d625acfb0@2ndquadrant.com> Date: Thu, 10 Sep 2020 17:03:43 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-09-10 14:13, Nicolas Sornin wrote: > I just made some test of upcoming version of porstgresql, especially the > ability to publish partitioned table via root partition. > > I tried to setup PG13 to PG12 replication with different partitioning > schemes. > > My first attempt was to replicate time partitioned table in PG13 cluster > to a regular table in PG12 cluster, but after looking at the logs I saw > the following error : > > 2020-09-09 12:21:33.964 CEST [22976] LOG:  logical replication table > synchronization worker for subscription "rep_part_sub", table > "stock_sales" has started > > 2020-09-09 12:21:33.997 CEST [22976] ERROR:  table "public.stock_sales" > not found on publisher > > 2020-09-09 12:21:33.999 CEST [20346] LOG:  background worker "logical > replication worker" (PID 22976) exited with exit code 1 > > While not being aware of underlying mechanics of logical replication, I > was expecting this use case to work given table names and column > names/types are the same on both sides. > > Is this the intended behavior and simply out of the scope of the changes > introduced by PG13 ? When the subscriber running on PG12 is trying to fetch information about the table from the publisher, it is looking for a real table, which it doesn't find, because it's a partitioned table. So this combination doesn't work. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services