Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iU988-0003sh-FA for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Nov 2019 12:49:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iU985-0006Dg-Sr for pgsql-hackers@arkaria.postgresql.org; Mon, 11 Nov 2019 12:49:13 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1iU984-0006DY-Pw for pgsql-hackers@lists.postgresql.org; Mon, 11 Nov 2019 12:49:13 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iU97u-0004Rp-6p for pgsql-hackers@postgresql.org; Mon, 11 Nov 2019 12:49:11 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 7968121AD0; Mon, 11 Nov 2019 07:48:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Mon, 11 Nov 2019 07:48:59 -0500 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-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=V7wzHMalP2/qCn2osx7+MlwsIAvEShHobds4yb0E8 vQ=; b=FQPqkczhb0r1D3n2K+l9T4a0l+DC0+470ERQn3dtX81xNzxojwLC2nBfD 5TRRVEB79yOhgIwiunSYr1wiWnjG8aHA7jWh2e53u8hp3CBTA/EGcQYGAaGrZn+V Hd20u042o98689UZSBhYEtjlW/3pCTNWnnpQevpUC3Z97UJo9f/QWW7rrByHxUnH d9TFZvYR3KmfWXSNBE8pBRaKgCoDAhJqXI3LDy106onYJXi1Tt4s4wcauHaVTUMZ TrVI4SDVovx/pBxsoiRx9tee6m5Dd+gRdUaA2Dj70rQVpmHwaxbNTu93ad1cMbpM AvWtkkZL01YTahOp7ZmWuH1+M2WvQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddvjedggeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmnecukfhppeelfedrvdegvddrudegjedrjeelnecurfgrrhgrmhepmhgrihhlfhhroh hmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomhen ucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 9893C3060057; Mon, 11 Nov 2019 07:48:58 -0500 (EST) Subject: Re: adding partitioned tables to publications To: Amit Langote References: <037d3133-1689-108c-360d-b782e3209cfb@2ndquadrant.com> Cc: Rafia Sabih , PostgreSQL-development From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Mon, 11 Nov 2019 13:48:57 +0100 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=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-11-11 08:59, Amit Langote wrote: > On Fri, Nov 8, 2019 at 1:27 PM Amit Langote wrote: >> Anyway, I've attached two patches -- 0001 is a refactoring patch. 0002 >> implements the feature. > > 0002 didn't contain necessary pg_dump changes, which fixed in the > attached new version. That looks more pleasant. I don't understand why you go through great lengths to ensure that the relkinds match between publisher and subscriber. We already ensure that only regular tables are published and only regular tables are allowed as subscription target. In the future, we may want to allow further combinations. What situation are you trying to address here? -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services